WebProcessStatistics.ThreadCount 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得處理序執行緒的總計數。
public:
property int ThreadCount { int get(); };
public int ThreadCount { get; }
member this.ThreadCount : int
Public ReadOnly Property ThreadCount As Integer
屬性值
處理序執行緒的總計數。
範例
下列程式碼範例示範如何取得 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 執行緒。