DispatcherExtensions.BeginInvoke DispatcherExtensions.BeginInvoke DispatcherExtensions.BeginInvoke Method

Definition

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

Overloads

BeginInvoke(Dispatcher, Action) BeginInvoke(Dispatcher, Action) BeginInvoke(Dispatcher, Action)

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

BeginInvoke(Dispatcher, Action, DispatcherPriority) BeginInvoke(Dispatcher, Action, DispatcherPriority) BeginInvoke(Dispatcher, Action, DispatcherPriority)

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

BeginInvoke(Dispatcher, Action) BeginInvoke(Dispatcher, Action) BeginInvoke(Dispatcher, Action)

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Threading::DispatcherOperation ^ BeginInvoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action);
[System.ComponentModel.Browsable(false)]
public static System.Windows.Threading.DispatcherOperation BeginInvoke (this System.Windows.Threading.Dispatcher dispatcher, Action action);
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action -> System.Windows.Threading.DispatcherOperation

Parameters

dispatcher
Dispatcher Dispatcher Dispatcher

The dispatcher that executes the delegate.

action
Action Action Action

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

Returns

Exceptions

BeginInvoke(Dispatcher, Action, DispatcherPriority) BeginInvoke(Dispatcher, Action, DispatcherPriority) BeginInvoke(Dispatcher, Action, DispatcherPriority)

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Threading::DispatcherOperation ^ BeginInvoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, System::Windows::Threading::DispatcherPriority priority);
[System.ComponentModel.Browsable(false)]
public static System.Windows.Threading.DispatcherOperation BeginInvoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, System.Windows.Threading.DispatcherPriority priority);
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherOperation

Parameters

dispatcher
Dispatcher Dispatcher Dispatcher

The dispatcher that executes the delegate.

action
Action Action Action

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

priority
DispatcherPriority DispatcherPriority DispatcherPriority

The execution priority of the delegate relative to other pending operations in the Dispatcher event queue.

Returns

Exceptions

Applies to