This documentation is archived and is not being maintained.

HttpRequest.PhysicalApplicationPath Property

Gets the physical file system path of the currently executing server application's root directory.

[Visual Basic]
Public ReadOnly Property PhysicalApplicationPath As String
public string PhysicalApplicationPath {get;}
public: __property String* get_PhysicalApplicationPath();
public function get PhysicalApplicationPath() : String;

Property Value

The file system path of the current application's root directory.


The following example assigns the physical file system path for the currently executing application to a string variable.

[Visual Basic] 
Dim Path As String
 Path = Request.PhysicalApplicationPath

String Path;
 Path = Request.PhysicalApplicationPath;

String* Path;
 Path = Request->PhysicalApplicationPath;

var path : String = Request.PhysicalApplicationPath


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

See Also

HttpRequest Class | HttpRequest Members | System.Web Namespace