Skip to main content

IDispatcherService.InvokeAsync(Action, DispatcherActionPriority, Int32) Method

Passes the specified delegate to the Windows.System.DispatcherQueue.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.WinUI.Mvvm.v23.2.dll

NuGet Package: DevExpress.WinUI

#Declaration

Task InvokeAsync(
    Action action,
    DispatcherActionPriority priority = DispatcherActionPriority.Normal,
    int delay = 0
)

#Parameters

Name Type Description
action Action

The invoked Action.

#Optional Parameters

Name Type Default Description
priority DispatcherActionPriority Normal

The invoked action’s priority in the Windows.System.DispatcherQueue.

delay Int32 0

A delay before the specified action is invoked, in milliseconds.

#Returns

Type Description
Task

The Task of the execution process.

See Also