WebApplicationInformation.ApplicationDomain Property

 

Gets the current application domain name.

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

Public ReadOnly Property ApplicationDomain As String

Property Value

Type: System.String

Gets the application domain name.

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

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

.NET Framework
Available since 2.0
Return to top
Show: