IAsyncCommand<TExecute,TCanExecute> Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An Async implementation of ICommand for Task
public interface IAsyncCommand<in TExecute,in TCanExecute> : System.Windows.Input.ICommand, Xamarin.CommunityToolkit.ObjectModel.IAsyncCommand<in TExecute>
Type Parameters
- TExecute
- TCanExecute
- Derived
- Implements
-
System.Windows.Input.ICommand IAsyncCommand<TExecute>
Properties
| AllowsMultipleExecutions |
Returns true if the Command allows simultaneous executions (Inherited from IAsyncCommand<T>) |
| IsExecuting |
Returns true when the Command is currently executing. Returns false when the Command is not executing (Inherited from IAsyncCommand<T>) |
Methods
| CanExecute(TCanExecute) |
Determines whether the command can execute in its current state |
| ExecuteAsync(T) |
Executes the Command as a Task (Inherited from IAsyncCommand<T>) |
| RaiseCanExecuteChanged() |
Raises the CanExecuteChanged event. (Inherited from IAsyncCommand<T>) |