Page.MapPath Method (String)
.NET Framework (current version)
Retrieves the physical path that a virtual path, either absolute or relative, or an application-relative path maps to.
Assembly: System.Web (in System.Web.dll)
Parameters
- virtualPath
-
Type:
System.String
A String that represents the virtual path.
Return Value
Type: System.StringThe physical path associated with the virtual path or application-relative path.
Caution |
|---|
The MapPath property can potentially contain sensitive information about the hosting environment. The return value should not be displayed to users. |
.NET Framework
Available since 1.1
Available since 1.1
Show:
.jpeg?cs-save-lang=1&cs-lang=fsharp)