Compartilhar via


AsyncCommand.ExecuteAsync(Object, IClientContext, CancellationToken) Method

Definition

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
override this.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.

Implements

Applies to