HttpRequestBase.MapPath Method (String, String, Boolean)
.NET Framework (current version)
When overridden in a derived class, maps the specified virtual path to a physical path on the server.
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.
| Exception | Condition |
|---|---|
| NotImplementedException | Always. |
.NET Framework
Available since 3.5
Available since 3.5
Show: