AsyncCommand(Func<CancellationToken, Task>, Func<Boolean>, Boolean) Constructor
In This Article
Initializes a new instance of the AsyncCommand class with specified settings.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.WinUI.Mvvm.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public AsyncCommand(
Func<CancellationToken, Task> execute,
Func<bool> canExecute = null,
bool allowMultipleExecution = false
)
#Parameters
Name | Type | Description |
---|---|---|
execute | Func<Cancellation |
The method that is called when the specified command is invoked. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
can |
Func<Boolean> | null |
|
allow |
Boolean | False |
|
See Also