Compartir a través de


ExecutableCommandHandler.ExecuteCommandAsync Method

Definition

Overloads

ExecuteCommandAsync(IClientContext, CancellationToken)

Raised when command is executed on the client.

ExecuteCommandAsync(IReadOnlyDictionary<String,Object>, CancellationToken)

Called to invoke the command.

ExecuteCommandAsync(IClientContext, CancellationToken)

Raised when command is executed on the client.

public abstract System.Threading.Tasks.Task ExecuteCommandAsync (Microsoft.VisualStudio.Extensibility.IClientContext context, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteCommandAsync : Microsoft.VisualStudio.Extensibility.IClientContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function ExecuteCommandAsync (context As IClientContext, cancellationToken As CancellationToken) As Task

Parameters

context
IClientContext

Client context at the time of command execution.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

a Task indication completion.

Applies to

ExecuteCommandAsync(IReadOnlyDictionary<String,Object>, CancellationToken)

Called to invoke the command.

public System.Threading.Tasks.Task ExecuteCommandAsync (System.Collections.Generic.IReadOnlyDictionary<string,object?> contextProperties, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteCommandAsync : System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ExecuteCommandAsync : System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ExecuteCommandAsync (contextProperties As IReadOnlyDictionary(Of String, Object), cancellationToken As CancellationToken) As Task

Parameters

contextProperties
IReadOnlyDictionary<String,Object>

Captured context properties for this command.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task to track the asynchronous call status.

Implements

Applies to