ICommand.InitializeAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.