AsyncCommand(Func<Task>, Func<Boolean>, Boolean) Constructor
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<Task> execute,
Func<bool> canExecute = null,
bool allowMultipleExecution = false
)
Parameters
Name | Type | Description |
---|---|---|
execute | Func<Task> | The Task that is called when the specified command is invoked. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
canExecute | Func<Boolean> | null |
|
allowMultipleExecution | Boolean | False |
|
See Also