Condividi tramite


ICommandSetProvider.ActivateCommandSetAsync Metodo

Definizione

Overload

ActivateCommandSetAsync(CancellationToken)

Indica che i comandi in questo set sono attualmente inclusi nell'ambito e devono monitorare lo stato e segnalare gli aggiornamenti al client su un oggetto IUpdateReceiver.

ActivateCommandSetAsync(Update, CancellationToken)

Indica che i comandi in questo set sono attualmente inclusi nell'ambito e devono monitorare lo stato e segnalare gli aggiornamenti al client su un oggetto IUpdateReceiver.

ActivateCommandSetAsync(CancellationToken)

Indica che i comandi in questo set sono attualmente inclusi nell'ambito e devono monitorare lo stato e segnalare gli aggiornamenti al client su un oggetto 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

Parametri

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Attività per tenere traccia dello stato della chiamata asincrona.

Si applica a

ActivateCommandSetAsync(Update, CancellationToken)

Indica che i comandi in questo set sono attualmente inclusi nell'ambito e devono monitorare lo stato e segnalare gli aggiornamenti al client su un oggetto 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

Parametri

initialCommandStates
Update

Stato iniziale di tutte le proprietà di tutti i comandi nel set di comandi.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Attività per tenere traccia dello stato della chiamata asincrona.

Si applica a