Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
[C#]
public string PhysicalApplicationPath {get;}
[C++]
public: __property String* get_PhysicalApplicationPath();
[JScript]
public function get PhysicalApplicationPath() : String;

Property Value

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

Example

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
   

[C#] 
String Path;
 Path = Request.PhysicalApplicationPath;
   

[C++] 
String* Path;
 Path = Request->PhysicalApplicationPath;


[JScript] 
var path : String = Request.PhysicalApplicationPath
   

Requirements

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

See Also

HttpRequest Class | HttpRequest Members | System.Web Namespace

Show:
© 2015 Microsoft