LanguageService.MainThreadId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Property Value
Returns a thread id.
Remarks
The 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.