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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

声明
Public Function Invoke ( _
    method As Delegate, _
    args As Object() _
) As Object
用法
Dim instance As LanguageService
Dim method As [Delegate]
Dim args As Object()
Dim returnValue As Object

returnValue = instance.Invoke(method, _
    args)
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

  • args
    Type: array<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, array<Object[])

Remarks

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

.NET Framework Security

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace