Process.Threads 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得在相關聯進程中執行的線程集。
public:
property System::Diagnostics::ProcessThreadCollection ^ Threads { System::Diagnostics::ProcessThreadCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Diagnostics.ProcessThreadCollection Threads { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Threads : System.Diagnostics.ProcessThreadCollection
Public ReadOnly Property Threads As ProcessThreadCollection
屬性值
一個型別 ProcessThread 的陣列,代表目前在相關程序中執行的作業系統執行緒。
- 屬性
例外狀況
備註
此屬性回傳的值代表最近一次刷新的執行緒。 要獲得最新資訊,你需要先打電話給 Refresh() Software。
執行緒執行程序中的程式碼。 每個程序從一個執行緒啟動,該執行緒為其主要執行緒。 任何執行緒都可以產生額外的執行緒。 程序內的執行緒共享該程序的位址空間。
用 ProcessThread 來取得與目前程序相關的所有執行緒。 主執行緒不一定在陣列的索引為零。