Open sandboxFocus

Method CreateAsyncDelegateCommand

CreateAsyncDelegateCommand(Func<CancellationToken, Task>, Func<bool>?, bool, bool)

Declaration
public static AsyncDelegateCommand CreateAsyncDelegateCommand(Func<CancellationToken, Task> execute, Func<bool>? canExecute, bool supportsConcurrentExecution, bool runsInBackground)
Parameters
Type Name Description
Func<CancellationToken, Task> execute
Func<bool> canExecute
bool supportsConcurrentExecution
bool runsInBackground
Returns
Type Description
AsyncDelegateCommand

CreateAsyncDelegateCommand(Func<Task>, Func<bool>?, bool, bool)

Declaration
public static AsyncDelegateCommand CreateAsyncDelegateCommand(Func<Task> execute, Func<bool>? canExecute, bool supportsConcurrentExecution, bool runsInBackground)
Parameters
Type Name Description
Func<Task> execute
Func<bool> canExecute
bool supportsConcurrentExecution
bool runsInBackground
Returns
Type Description
AsyncDelegateCommand

CreateAsyncDelegateCommand(Func<CancellationToken, Task>, Func<bool>, INotifyPropertyChanged, string, bool, bool)

Declaration
public static AsyncDelegateCommand CreateAsyncDelegateCommand(Func<CancellationToken, Task> execute, Func<bool> canExecute, INotifyPropertyChanged canExecuteNotifier, string canExecutePropertyName, bool supportsConcurrentExecution, bool runsInBackground)
Parameters
Type Name Description
Func<CancellationToken, Task> execute
Func<bool> canExecute
INotifyPropertyChanged canExecuteNotifier
string canExecutePropertyName
bool supportsConcurrentExecution
bool runsInBackground
Returns
Type Description
AsyncDelegateCommand

CreateAsyncDelegateCommand<T>(Func<T, CancellationToken, Task>, Func<T, bool>, INotifyPropertyChanged, string, bool, bool)

Declaration
public static AsyncDelegateCommand<T> CreateAsyncDelegateCommand<T>(Func<T, CancellationToken, Task> execute, Func<T, bool> canExecute, INotifyPropertyChanged canExecuteNotifier, string canExecutePropertyName, bool supportsConcurrentExecution, bool runsInBackground)
Parameters
Type Name Description
Func<T, CancellationToken, Task> execute
Func<T, bool> canExecute
INotifyPropertyChanged canExecuteNotifier
string canExecutePropertyName
bool supportsConcurrentExecution
bool runsInBackground
Returns
Type Description
AsyncDelegateCommand<T>
Type Parameters
Name Description
T

CreateAsyncDelegateCommand<T>(Func<T, CancellationToken, Task>, Func<T, bool>, bool, bool)

Declaration
public static AsyncDelegateCommand<T> CreateAsyncDelegateCommand<T>(Func<T, CancellationToken, Task> execute, Func<T, bool> canExecute, bool supportsConcurrentExecution, bool runsInBackground)
Parameters
Type Name Description
Func<T, CancellationToken, Task> execute
Func<T, bool> canExecute
bool supportsConcurrentExecution
bool runsInBackground
Returns
Type Description
AsyncDelegateCommand<T>
Type Parameters
Name Description
T

CreateAsyncDelegateCommand<T>(Func<T, Task>, Func<T, bool>, bool, bool)

Declaration
public static AsyncDelegateCommand<T> CreateAsyncDelegateCommand<T>(Func<T, Task> execute, Func<T, bool> canExecute, bool supportsConcurrentExecution, bool runsInBackground)
Parameters
Type Name Description
Func<T, Task> execute
Func<T, bool> canExecute
bool supportsConcurrentExecution
bool runsInBackground
Returns
Type Description
AsyncDelegateCommand<T>
Type Parameters
Name Description
T

CreateAsyncDelegateCommand(Func<Task>, Func<bool>, INotifyPropertyChanged, string, bool, bool)

Declaration
public static AsyncDelegateCommand CreateAsyncDelegateCommand(Func<Task> execute, Func<bool> canExecute, INotifyPropertyChanged canExecuteNotifier, string canExecutePropertyName, bool supportsConcurrentExecution, bool runsInBackground)
Parameters
Type Name Description
Func<Task> execute
Func<bool> canExecute
INotifyPropertyChanged canExecuteNotifier
string canExecutePropertyName
bool supportsConcurrentExecution
bool runsInBackground
Returns
Type Description
AsyncDelegateCommand