Table of Contents

Method Invoke

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Invoke(Delegate?, object?[])

Executes the specified delegate, on the thread that owns the control, with the specified list of arguments.

public virtual object? Invoke(Delegate? method, object?[] args)

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

object

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

Invoke(Delegate?)

Executes the specified delegate on the thread that owns the control.

public virtual object? Invoke(Delegate? method)

Parameters

method Delegate

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

Returns

object

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

Invoke(Action?)

Executes the specified action on the thread that owns the control.

public virtual void Invoke(Action? action)

Parameters

action Action

An action to be called in the control's thread context.