WebProcessStatistics.AppDomainCount Property

 

Gets the number of application domains in the process.

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

public int AppDomainCount { get; }

Property Value

Type: System.Int32

The number of application domains.

This property usually refers to the number of ASP.NET applications in the process, including the default domain.

The following code example shows how to get the AppDomainCount value.

public string GetAppDomainCount()
{
    // Get the app domain count.
    return (string.Format(
        "Application domain count: {0}",
        processStatistics.AppDomainCount.ToString()));
}

.NET Framework
Available since 2.0
Return to top
Show: