WebPathMapperBaseTryMapPath Method |
Converts the provided relative path to a corresponding full physical path. A return value indicates whether the conversion succeeded.
For the application residing in C:\\folder\\appFolder and "~/AppData" relativePath parameter,
the result will be C:\\folder\\appFolder\\AppData.
Namespace: CMS.Base.InternalAssembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntax public bool TryMapPath(
string relativePath,
out string physicalPath
)
Parameters
- relativePath
- Type: SystemString
Relative path to be resolved. - physicalPath
- Type: SystemString
When this method returns, contains the full physical path from the relativePath, if the conversion succeeded
or null if the relativePath is not a valid relative path.
Return Value
Type:
Booleantrue if the
relativePath is converted successfully,
false otherwise.
Implements
IWebPathMapperTryMapPath(String, String)Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when relativePath is null. |
See Also