DispatcherExtensions::BeginInvoke Method (Dispatcher^, Action^, DispatcherPriority)
.NET Framework (current version)
Executes the specified delegate asynchronously with the specified priority on the thread that the specified Dispatcher was created on.
Assembly: System.Windows.Presentation (in System.Windows.Presentation.dll)
public: [ExtensionAttribute] [BrowsableAttribute(false)] static DispatcherOperation^ BeginInvoke( Dispatcher^ dispatcher, Action^ action, DispatcherPriority priority )
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.
- priority
-
Type:
System.Windows.Threading::DispatcherPriority
The execution priority of the delegate relative to other pending operations in the Dispatcher event queue.
Return Value
Type: System.Windows.Threading::DispatcherOperation^An IAsyncResult object that represents the result of the BeginInvoke operation.
| Exception | Condition |
|---|---|
| ArgumentNullException | action is null. |
| InvalidEnumArgumentException | priority is not a valid DispatcherPriority. |
.NET Framework
Available since 3.5
Available since 3.5
Show: