共用方式為


LanguageService.Invoke(Delegate, Object[]) Method

Definition

Called to invoke a task specified by the given delegate.

public:
 virtual System::Object ^ Invoke(Delegate ^ method, cli::array <System::Object ^> ^ args);
public:
 Platform::Object ^ Invoke(Delegate ^ method, Platform::Array <Platform::Object ^> ^ args);
public object Invoke (Delegate method, object[] args);
abstract member Invoke : Delegate * obj[] -> obj
override this.Invoke : Delegate * obj[] -> obj
Public Function Invoke (method As Delegate, args As Object()) As Object

Parameters

method
Delegate

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

args
Object[]

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

Returns

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

Implements

Remarks

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

Applies to