Skip to main content

IAsyncCommand Members

An interface that specifies an asynchronous command.

Properties

Name Description
CancelCommand Gets the command that creates a request to cancel the asynchronous command execution.
CancellationToken Gets the CancellationToken that propagates a notification that the asynchronous command should be canceled.
IsCancellationRequested Gets whether an AsyncCommand<T> should be cancelled.
IsExecuting Gets whether the asynchronous command is executing.

Methods

Name Description
Cancel() Creates a request to cancel the command execution.
Cancel(Boolean) Creates a request to cancel the command execution.
CancelAfter(Int32) Creates a request to cancel the command execution after the specified number of milliseconds.
CancelAfter(TimeSpan) Creates a request to cancel the command execution after the specified time span.
CanExecute(Object) Defines the method that determines whether the command can execute in its current state. Inherited from ICommand.
Execute(Object) Defines the method to be called when the command is invoked. Inherited from ICommand.
ExecuteAsync(Object) Defines the asynchronous method to be called when the command is invoked.
RaiseCanExecuteChanged() Raises the CanExecuteChanged event. You can use this method to notify a visual element about a command’s CanExecute(T) state changes. Inherited from IDelegateCommand.

Events

Name Description
CanExecuteChanged Occurs when changes occur that affect whether or not the command should execute. Inherited from ICommand.
See Also