Share via


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)

Syntax

'Declaration
Public Function Invoke ( _
    method As Delegate, _
    args As Object() _
) As Object
public Object Invoke(
    Delegate method,
    Object[] args
)
public:
virtual Object^ Invoke(
    Delegate^ method, 
    array<Object^>^ args
) sealed
abstract Invoke : 
        method:Delegate * 
        args:Object[] -> Object  
override Invoke : 
        method:Delegate * 
        args:Object[] -> Object
public final function Invoke(
    method : Delegate, 
    args : Object[]
) : Object

Parameters

  • method
    Type: Delegate

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

  • args
    Type: array<Object[]

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

Return Value

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

Implements

ISynchronizeInvoke.Invoke(Delegate, Object)

Remarks

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

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace