Skip to main content

AsyncCommand Members

An asynchronous command without a command parameter.

Constructors

Name Description
AsyncCommand(Func<CancellationToken, Task>, Func<Boolean>, Boolean) Initializes a new instance of the AsyncCommand class with specified settings.
AsyncCommand(Func<Task>, Func<Boolean>, Boolean) Initializes a new instance of the AsyncCommand class with specified settings.

Properties

Name Description
AllowMultipleExecution Gets whether the AsyncCommand<T> allows you to invoke the execute delegate while its execution is in progress. Inherited from AsyncCommand<T>.
CancelCommand Gets the command that creates a request to cancel the asynchronous command execution. Inherited from AsyncCommand<T>.
CancellationToken Gets the CancellationToken that propagates the notification that an asynchronous command should be canceled. Inherited from AsyncCommand<T>.
IsCancellationRequested Gets whether an AsyncCommand<T> should be cancelled. Inherited from AsyncCommand<T>.
IsExecuting Gets whether the asynchronous command is executing. Inherited from AsyncCommand<T>.

Methods

Name Description
Cancel() Creates a request to cancel the command execution. Inherited from AsyncCommand<T>.
Cancel(Boolean) Creates a request to cancel the command execution. Inherited from AsyncCommand<T>.
CancelAfter(Int32) Creates a request to cancel the command execution after the specified number of milliseconds. Inherited from AsyncCommand<T>.
CancelAfter(TimeSpan) Creates a request to cancel the command execution after the specified time span. Inherited from AsyncCommand<T>.
CanExecute(T) Returns whether the command can be executed in its current state. Inherited from AsyncCommand<T>.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Execute(T) Defines the method to be called when the command is invoked. Inherited from AsyncCommand<T>.
ExecuteAsync(T) Defines the asynchronous method to be called when the command is invoked. Inherited from AsyncCommand<T>.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
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 CommandBase<T>.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

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