Export (0) Print
Expand All

HttpRequestBase.MapPath Method (String, String, Boolean)

When overridden in a derived class, maps the specified virtual path to a physical path on the server.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public virtual string MapPath(
	string virtualPath,
	string baseVirtualDir,
	bool allowCrossAppMapping
)

Parameters

virtualPath
Type: System.String

The virtual path (absolute or relative) to map to a physical path.

baseVirtualDir
Type: System.String

The virtual base directory path that is used for relative resolution.

allowCrossAppMapping
Type: System.Boolean

true to indicate that virtualPath can belong to another application; otherwise, false.

Return Value

Type: System.String
The physical path on the server.

ExceptionCondition
NotImplementedException

Always.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft