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)
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.
| Exception | Condition |
|---|---|
| NotImplementedException | Always. |
.NET Framework
Available since 3.5
Available since 3.5
Show: