Export (0) Print
Expand All
Expand Minimize

LanguageService.BeginInvoke Method

Invokes a method on another thread.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

[HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization = true, 
	ExternalThreading = true)]
public IAsyncResult BeginInvoke(
	Delegate method,
	Object[] args
)

Parameters

method
Type: System.Delegate

[in] The method to invoke.

args
Type: System.Object[]

[in] The possible arguments to the method being invoked.

Return Value

Type: System.IAsyncResult
If successful, returns an IAsyncResult object; otherwise, returns a null value if the invoke operation failed.

Implements

ISynchronizeInvoke.BeginInvoke(Delegate, Object[])

This method is used to start a background parse operation.

NoteNote

The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: Synchronization | ExternalThreading. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

Show:
© 2015 Microsoft