CreateParametricAsyncDelegateCommand<T>(Func<T, CancellationToken, Task>, Func<T, bool>?, bool, bool, bool)
Declaration
public static AsyncDelegateCommand<T> CreateParametricAsyncDelegateCommand<T>(Func<T, CancellationToken, Task> execute, Func<T, bool>? canExecute, bool supportsCancellation, bool supportsConcurrentExecution, bool runsInBackground)Parameters
| Type | Name | Description |
|---|---|---|
| Func<T, CancellationToken, Task> | execute | |
| Func<T, bool> | canExecute | |
| bool | supportsCancellation | |
| bool | supportsConcurrentExecution | |
| bool | runsInBackground |
Returns
| Type | Description |
|---|---|
| AsyncDelegateCommand<T> |
Type Parameters
| Name | Description |
|---|---|
| T |
CreateParametricAsyncDelegateCommand<T>(Func<T, Task>, Func<T, bool>?, bool, bool, bool)
Declaration
public static AsyncDelegateCommand<T> CreateParametricAsyncDelegateCommand<T>(Func<T, Task> execute, Func<T, bool>? canExecute, bool supportsCancellation, bool supportsConcurrentExecution, bool runsInBackground)Parameters
| Type | Name | Description |
|---|---|---|
| Func<T, Task> | execute | |
| Func<T, bool> | canExecute | |
| bool | supportsCancellation | |
| bool | supportsConcurrentExecution | |
| bool | runsInBackground |
Returns
| Type | Description |
|---|---|
| AsyncDelegateCommand<T> |
Type Parameters
| Name | Description |
|---|---|
| T |