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)

abstract MapPath : 
        virtualPath:string *
        baseVirtualDir:string *
        allowCrossAppMapping:bool -> string
override MapPath : 
        virtualPath:string *
        baseVirtualDir:string *
        allowCrossAppMapping:bool -> string

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.

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show: