LanguageService.InvokeRequired Property
Determines if a method must be invoked across a thread boundary.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaração
Public ReadOnly Property InvokeRequired As Boolean
public bool InvokeRequired { get; }
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.