語言

ProcessThread.Id 屬性

定義

取得執行緒的唯一識別碼。

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

屬性值

與特定執行緒相關的唯一識別碼。

備註

作業系統會重複使用執行緒識別碼,該識別碼僅在執行緒的生命週期內識別執行緒。

適用於