Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

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:
© 2014 Microsoft. All rights reserved.