DispatcherService.InvokeAsync(Action, DispatcherActionPriority, Int32) Method
In This Article
Executes the specified Action asynchronously at the specified priority on the thread that is associated with the Dispatcher.
Namespace: DevExpress.WinUI.Core
Assembly: DevExpress.WinUI.Core.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public Task InvokeAsync(
Action action,
DispatcherActionPriority priority = DispatcherActionPriority.Normal,
int delay = 0
)
#Parameters
Name | Type | Description |
---|---|---|
action | Action | A delegate that is invoked. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
priority | Dispatcher |
Normal | The order in which the specified callback is invoked relative to the other pending operations in the Dispatcher. |
delay | Int32 | 0 |
#Returns
Type |
---|
Task |
See Also