HttpServerUtilityWrapper::MapPath Method (String^)

 

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
) override

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.

Exception Condition
HttpException

The current HttpContext object is null.

.NET Framework
Available since 3.5
Return to top
Show: