This documentation is archived and is not being maintained.

HttpWorkerRequest.MapPath Method

Returns the physical path corresponding to the specified virtual path.

[Visual Basic]
Public Overridable Function MapPath( _
   ByVal virtualPath As String _
) As String
[C#]
public virtual string MapPath(
 string virtualPath
);
[C++]
public: virtual String* MapPath(
 String* virtualPath
);
[JScript]
public function MapPath(
   virtualPath : String
) : String;

Parameters

virtualPath
The virtual path.

Return Value

The physical path that corresponds to the virtual path specified in the virtualPath parameter.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpWorkerRequest Class | HttpWorkerRequest Members | System.Web Namespace

Show: