Click or drag to resize
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.Internal
Assembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntax
C#
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: Boolean
true if the relativePath is converted successfully, false otherwise.

Implements

IWebPathMapperTryMapPath(String, String)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when relativePath is null.
See Also