Export (0) Print
Expand All
Expand Minimize

LanguageService.Invoke Method

Called to invoke a task specified by the given delegate.

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)

public Object Invoke(
	Delegate method,
	Object[] args
)

Parameters

method
Type: System.Delegate

[in] The method to invoke as represented by a Delegate object.

args
Type: System.Object[]

[in] An array of possible arguments for the method.

Return Value

Type: System.Object
Returns an IAsyncResult object or null if the invoke operation failed.

Implements

ISynchronizeInvoke.Invoke(Delegate, Object[])

The IAsyncResult object represents the return value of the invoked method.

Show:
© 2014 Microsoft