ThreadGroup.ActiveGroupCount 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳該執行緒群組及其子群組中活躍群組數量的估計值。
[Android.Runtime.Register("activeGroupCount", "()I", "GetActiveGroupCountHandler")]
public virtual int ActiveGroupCount();
[<Android.Runtime.Register("activeGroupCount", "()I", "GetActiveGroupCountHandler")>]
abstract member ActiveGroupCount : unit -> int
override this.ActiveGroupCount : unit -> int
傳回
以該執行緒群組為祖先的活躍執行緒群組數量
- 屬性
備註
回傳該執行緒群組及其子群組中活躍群組數量的估計值。 遞迴迭代此執行緒群中的所有子群。
回傳的值僅為估計值,因為此方法在穿越內部資料結構時,執行緒群組數量可能會動態變化。 此方法主要用於除錯與監控。
1.0 版本新增。
Java 文件 java.lang.ThreadGroup.activeGroupCount()。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。