WebApplicationInformation.ApplicationVirtualPath Property

 

Gets the application logical path.

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

public string ApplicationVirtualPath { get; }

Property Value

Type: System.String

The application logical path.

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

public string GetApplicationVirtualPath()
{
    // Get the name of the application virtual path.
    return (string.Format(
        "Application virtual path: {0}",
        ApplicationInformation.ApplicationVirtualPath));
}

.NET Framework
Available since 2.0
Return to top
Show: