Method ExecuteAsync
ExecuteAsync(T?)
Occurs when changes occur that affect whether the command should execute.
Declaration
public Task ExecuteAsync(T? parameter)
Parameters
Type | Name | Description |
---|---|---|
T | parameter | The parameter to use when determining whether the command can execute. |
Returns
Type | Description |
---|---|
Task | True if this command can be executed; otherwise, false. |
Implements
ExecuteAsync(object?)
Gets a value indicating whether this AsyncRelayCommand<T> can be executed.
Declaration
public Task ExecuteAsync(object? parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The parameter to use when determining whether the command can execute. |
Returns
Type | Description |
---|---|
Task | True if this command can be executed; otherwise, false. |
Implements
Exceptions
Type | Condition |
---|---|
InvalidOperationException | ExecuteAsync(T?) has not been called. |