IAsyncCommand.ExecuteAsync(Object, IClientContext, 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.
Defines the method to be called when the command is invoked.
public System.Threading.Tasks.Task ExecuteAsync (object? parameter, Microsoft.VisualStudio.Extensibility.IClientContext clientContext, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteAsync : obj * Microsoft.VisualStudio.Extensibility.IClientContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ExecuteAsync (parameter As Object, clientContext As IClientContext, cancellationToken As CancellationToken) As Task
Parameters
- parameter
- Object
Data used by the command.
- clientContext
- IClientContext
Client context at the time of command invocation.
- cancellationToken
- CancellationToken
Cancellation token for the async call.
Returns
A Task tracking the completion of the async call execution.