Skip to main content
A newer version of this page is available. .

DispatcherService.InvokeAsync(Action, DispatcherActionPriority, Int32) Method

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.v22.1.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 DispatcherActionPriority 0

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