ThreadPool.ThreadCount 屬性

定義

取得目前存在的執行緒集區執行緒數。

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

屬性值

Int32

目前存在的執行緒集區執行緒數目。

備註

如果執行緒集區實作可能有不同的執行緒類型,計數會包含所有類型的。

適用於