Application.Path Property

IIS 7.0

Gets or sets the relative associated with the application.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public string Path { get; set; }

Property Value

Type: System.String

The relative path the application is bound to.

This value represents the path of the root of the application.

The following example displays the relative path for the applications configured under the default Web site.

The following example creates a new application and then uses the Path property to change the relative path of the application, and then uses the PhysicalPath property to change the physical path of the application.

Return to top