共用方式為


WebProcessStatistics.ThreadCount 屬性

定義

取得處理序執行緒的總計數。

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

屬性值

Int32

處理序執行緒的總計數。

範例

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

public string GetThreadCount()
{
    // Get the thread count.
    return (string.Format(
        "Thread count: {0}",
        processStatistics.ThreadCount.ToString()));
}
Public Function GetThreadCount() As String
    ' Get the thread count.
    Return String.Format( _
    "Thread count: {0}", _
    processStatistics.ThreadCount.ToString())
End Function 'GetThreadCount

備註

計數是指 Managed 和 Unmanaged 執行緒。

適用於