Share via


ICommandSetProvider.ActivateCommandSetAsync Method

Definition

Overloads

ActivateCommandSetAsync(CancellationToken)

Indicates that the commands in this set are currently in scope and should monitor state and report updates to the client over an IUpdateReceiver.

ActivateCommandSetAsync(Update, CancellationToken)

Indicates that the commands in this set are currently in scope and should monitor state and report updates to the client over an IUpdateReceiver.

ActivateCommandSetAsync(CancellationToken)

Indicates that the commands in this set are currently in scope and should monitor state and report updates to the client over an IUpdateReceiver.

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

Parameters

cancellationToken
CancellationToken

Cancellation token.

Returns

Task to track the asynchronous call status.

Applies to

ActivateCommandSetAsync(Update, CancellationToken)

Indicates that the commands in this set are currently in scope and should monitor state and report updates to the client over an IUpdateReceiver.

public System.Threading.Tasks.Task ActivateCommandSetAsync (Microsoft.VisualStudio.RpcContracts.Commands.Update initialCommandStates, System.Threading.CancellationToken cancellationToken);
abstract member ActivateCommandSetAsync : Microsoft.VisualStudio.RpcContracts.Commands.Update * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ActivateCommandSetAsync (initialCommandStates As Update, cancellationToken As CancellationToken) As Task

Parameters

initialCommandStates
Update

The initial state of all of the properties of all of the commands in the command set.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task to track the asynchronous call status.

Applies to