WebApplicationInformation.ApplicationPath Property

 

Gets the application physical path.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

Public ReadOnly Property ApplicationPath As String

Property Value

Type: System.String

The application physical path.

This property requires appropriate permissions to be accessed. Refer to the Permissions section.

The following code example shows how to obtain the application physical path.

Public Function GetApplicationPath() As String
    ' Get the name of the application  path.
    Return String.Format( _
    "Application path: {0}", _
    ApplicationInformation.ApplicationPath())
End Function 'GetApplicationPath

.NET Framework
Available since 2.0
Return to top
Show: