LanguageService.MainThreadId 屬性

定義

傳回此語言服務執行所在之執行緒的識別碼。Returns the id of the thread this language service is running on.

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

屬性值

Int32

傳回執行緒識別碼。Returns a thread id.

備註

當建立時,就會初始化執行緒識別碼 LanguageServiceThe thread id is initialized when the LanguageService is constructed. 如果您需要知道語言服務執行所在之執行緒的識別碼,請使用這個方法。Use this method if you need to know the ID of the thread the language service is running in.

適用於