Partager via


ICommand.InitializeAsync(CancellationToken) Method

Definition

Completes async initialization of command instance.

public System.Threading.Tasks.Task InitializeAsync (System.Threading.CancellationToken cancellationToken);
abstract member InitializeAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function InitializeAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

Task indication completion of initialization.

Remarks

This method can be used to initialize values that can be retrieved asynchronously in addition to the constructor.

Applies to