Maps the specified virtual path to a physical path.
Syntax
public stringMapPath (string virtualPath, string baseVirtualDir, bool allowCrossAppMapping)
Parameters
virtualPath
The virtual path (absolute or relative) for the current request.
baseVirtualDir
The virtual base directory path used for relative resolution.
allowCrossAppMapping
true to indicate that virtualPath may belong to another application; otherwise, false.
Returns
The physical path on the server.
Remarks
Note:
The HttpRequest.MapPath(string, string, bool) property potentially contains sensitive information about the hosting environment. The return value should not be displayed to users.
Requirements
Namespace: System.Web Assembly: System.Web (in System.Web.dll) Assembly Versions: 1.0.5000.0, 2.0.0.0