Called to invoke a task specified by the given delegate.
Namespace: Microsoft.VisualStudio.Package
Assembly: 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
public final function Invoke(
method : Delegate,
args : Object[]
) : Object
Parameters
method
Type: System.Delegate[in] The method to invoke as represented by a Delegate object.
args
Type: [][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, [])
Remarks
The IAsyncResult object represents the return value of the invoked method.
Permissions
- 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.