DispatcherExtensions.BeginInvoke Method (Dispatcher, Action)

 

Executes the specified delegate asynchronously with normal priority on the thread that the specified Dispatcher was created on.

Namespace:   System.Windows.Threading
Assembly:  System.Windows.Presentation (in System.Windows.Presentation.dll)

[BrowsableAttribute(false)]
public static DispatcherOperation BeginInvoke(
	this Dispatcher dispatcher,
	Action action
)

Parameters

dispatcher
Type: System.Windows.Threading.Dispatcher

The dispatcher that executes the delegate.

action
Type: System.Action

The delegate to execute, which takes no arguments and does not return a value.

Return Value

Type: System.Windows.Threading.DispatcherOperation

An IAsyncResult object that represents the result of the BeginInvoke operation.

Exception Condition
ArgumentNullException

action is null.

.NET Framework
Available since 3.5
Return to top
Show: