Прочитать на английском Изменить

Поделиться через


AsyncRelayCommand Constructors

Definition

Overloads

AsyncRelayCommand(Func<CancellationToken,Task>)

Initializes a new instance of the AsyncRelayCommand class that can always execute.

AsyncRelayCommand(Func<Task>)

Initializes a new instance of the AsyncRelayCommand class that can always execute.

AsyncRelayCommand(Func<CancellationToken,Task>, Func<Boolean>)

Initializes a new instance of the AsyncRelayCommand class.

AsyncRelayCommand(Func<Task>, Func<Boolean>)

Initializes a new instance of the AsyncRelayCommand class.

AsyncRelayCommand(Func<CancellationToken,Task>)

Initializes a new instance of the AsyncRelayCommand class that can always execute.

public AsyncRelayCommand(Func<System.Threading.CancellationToken,System.Threading.Tasks.Task> cancelableExecute);

Parameters

cancelableExecute
Func<CancellationToken,Task>

The cancelable execution logic.

Applies to

AsyncRelayCommand(Func<Task>)

Initializes a new instance of the AsyncRelayCommand class that can always execute.

public AsyncRelayCommand(Func<System.Threading.Tasks.Task> execute);

Parameters

execute
Func<Task>

The execution logic.

Applies to

AsyncRelayCommand(Func<CancellationToken,Task>, Func<Boolean>)

Initializes a new instance of the AsyncRelayCommand class.

public AsyncRelayCommand(Func<System.Threading.CancellationToken,System.Threading.Tasks.Task> cancelableExecute, Func<bool> canExecute);

Parameters

cancelableExecute
Func<CancellationToken,Task>

The cancelable execution logic.

canExecute
Func<Boolean>

The execution status logic.

Applies to

AsyncRelayCommand(Func<Task>, Func<Boolean>)

Initializes a new instance of the AsyncRelayCommand class.

public AsyncRelayCommand(Func<System.Threading.Tasks.Task> execute, Func<bool> canExecute);

Parameters

execute
Func<Task>

The execution logic.

canExecute
Func<Boolean>

The execution status logic.

Applies to