Method CanExecute
CanExecute(object?)
Determines whether this AsyncRelayCommand<T> can execute in its current state.
Declaration
public bool CanExecute(object? parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| object | parameter | The parameter to use when determining whether the command can execute. |
Returns
| Type | Description |
|---|---|
| bool | True if this command can be executed; otherwise, false. |
Implements
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | ExecuteAsync(T?) has not been called. |
CanExecute(T?)
Determines whether this AsyncRelayCommand<T> can execute in its current state.
Declaration
public bool CanExecute(T? parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| T | parameter | The parameter to use when determining whether the command can execute. |
Returns
| Type | Description |
|---|---|
| bool | True if this command can be executed; otherwise, false. |