WebApplicationInformation.ApplicationDomain Property

 

Gets the current application domain name.

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

public string ApplicationDomain { get; }

Property Value

Type: System.String

Gets the application domain name.

The following code example shows how to obtain the application domain name.

public string GetApplicationDomain()
{
    // Get the name of the application domain.
    return (string.Format(
        "Application domain: {0}",
        ApplicationInformation.ApplicationDomain));
}

.NET Framework
Available since 2.0
Return to top
Show: