共用方式為


WebProcessStatistics.AppDomainCount 屬性

定義

取得處理序中的應用程式定義域個數。

public:
 property int AppDomainCount { int get(); };
public int AppDomainCount { get; }
member this.AppDomainCount : int
Public ReadOnly Property AppDomainCount As Integer

屬性值

應用程式定義域的個數。

範例

下列程式碼範例示範如何取得 AppDomainCount 值。

public string GetAppDomainCount()
{
    // Get the app domain count.
    return (string.Format(
        "Application domain count: {0}",
        processStatistics.AppDomainCount.ToString()));
}
Public Function GetAppDomainCount() As String
    ' Get the app domain count.
    Return String.Format( _
    "Application domain count: {0}", _
    processStatistics.AppDomainCount.ToString())
End Function 'GetAppDomainCount

備註

此屬性通常是指程式中 ASP.NET 應用程式的數目,包括預設網域。

適用於