Environment.CurrentManagedThreadId 属性

定义

获取当前托管线程的唯一标识符。

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

属性值

Int32

此托管线程的唯一标识符。

适用于