Share via


LanguageService.InvokeRequired Property

Determines if a method must be invoked across a thread boundary.

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

Syntax

'Declaration
Public ReadOnly Property InvokeRequired As Boolean
'Usage
Dim instance As LanguageService 
Dim value As Boolean 

value = instance.InvokeRequired
public bool InvokeRequired { get; }
public:
virtual property bool InvokeRequired {
    bool get () sealed;
}
public final function get InvokeRequired () : boolean

Property Value

Type: System.Boolean
Returns true if a method must be invoked across thread boundaries; otherwise, returns false.

Implements

ISynchronizeInvoke.InvokeRequired

Remarks

This property is typically not accessed unless it is by your own code.

The base property relies on a Control object created when the language service was instantiated. If that Control does not exist, an InvalidOperationException exception is thrown.

.NET Framework Security

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace