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

AsyncCommand Class

Allows you to define an asynchronous command in a View Model.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v21.1.dll

Declaration

public class AsyncCommand :
    AsyncCommand<object>

Remarks

The AsyncCommand class has the IsExecuting property. While the command task is executing, IsExecuting returns true and the AsyncCommand.CanExecute method always returns false regardless of the contents of your CanExecute delegate. This functionality disables controls bound to the command until the pending command task is finished.

You can explicitly disable this behavior by setting the AllowMultipleExecution property to true. In this case, the AsyncCommand.CanExecute method returns a value based on your specified CanExecute delegate.

Refer to the following topic for more information: Asynchronous Commands.

Inheritance

Object
DevExpress.Mvvm.CommandBase
DevExpress.Mvvm.CommandBase<Object>
DevExpress.Mvvm.AsyncCommandBase<Object>
DevExpress.Mvvm.AsyncCommand<Object>
AsyncCommand
See Also