共用方式為


Environment.CurrentManagedThreadId 屬性

定義

取得目前 Managed 執行緒的唯一識別項。

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

屬性值

這個受控執行緒的唯一識別碼。

適用於