LanguageService.MainThreadId Property

Returns the id of the thread this language service is running on.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Public ReadOnly Property MainThreadId As Integer
'使用
Dim instance As LanguageService
Dim value As Integer

value = instance.MainThreadId
public int MainThreadId { get; }
public:
property int MainThreadId {
    int get ();
}
public function get MainThreadId () : int

Property Value

Type: System.Int32

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.

Permissions

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace