ProcessThread.Id 屬性

定義

取得執行緒的唯一識別項。Gets the unique identifier of the thread.

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

屬性值

與特定執行緒相關的唯一識別項。The unique identifier associated with a specific thread.

備註

作業系統會重複使用執行緒識別碼, 這會在其存留期內識別執行緒。The operating system reuses thread identification numbers, which identify threads only during their lifetimes.

適用於