ActionsPane.Invoke Method

Definition

Executes a delegate on the thread that owns the actions pane's underlying window handle.

Overloads

Invoke(Delegate)

Executes the specified delegate on the thread that owns the actions pane's underlying window handle.

Invoke(Delegate, Object[])

Executes the specified delegate, on the thread that owns the actions pane's underlying window handle, with the specified list of arguments.

Remarks

This method provides the same functionality as the Control.Invoke method. For more information about using this method, see Control.Invoke.

Invoke(Delegate)

Executes the specified delegate on the thread that owns the actions pane's underlying window handle.

public:
 System::Object ^ Invoke(Delegate ^ method);
public object Invoke (Delegate method);
abstract member Invoke : Delegate -> obj
Public Function Invoke (method As Delegate) As Object

Parameters

method
Delegate

A delegate that contains a method to be called in the actions pane's thread context.

Returns

The return value from the delegate being invoked, or null if the delegate has no return value.

Remarks

This method provides the same functionality as the Control.Invoke(Delegate) method. For more information about using this method, see Control.Invoke(Delegate).

Applies to

Invoke(Delegate, Object[])

Executes the specified delegate, on the thread that owns the actions pane's underlying window handle, with the specified list of arguments.

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

Parameters

method
Delegate

A delegate to a method that takes parameters of the same number and type that are contained in the args parameter.

args
Object[]

An array of objects to pass as arguments to the specified method. This parameter can be null if the method takes no arguments.

Returns

An Object that contains the return value from the delegate being invoked, or null if the delegate has no return value.

Remarks

This method provides the same functionality as the System.Windows.Forms.Control.Invoke(Delegate, Object[]) method. For more information about using this method, see System.Windows.Forms.Control.Invoke(Delegate, Object[]).

Applies to