Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MapPath Method

HttpServerUtilityBase.MapPath Method

When overridden in a derived class, returns the physical file path that corresponds to the specified virtual path on the Web server.

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

public virtual string MapPath(
	string path
)

Parameters

path
Type: System.String

The virtual path to get the physical path for.

Return Value

Type: System.String
The physical file path that corresponds to path.

ExceptionCondition
NotImplementedException

Always.

.NET Framework

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