Partager via


ICommandSetProvider.ExecuteCommandAsync Method

Definition

Overloads

ExecuteCommandAsync(String, IReadOnlyDictionary<String,Object>, CancellationToken)

Called to execute a command.

ExecuteCommandAsync(UInt16, IReadOnlyDictionary<String,Object>, CancellationToken)

Called to execute a command.

ExecuteCommandAsync(String, IReadOnlyDictionary<String,Object>, CancellationToken)

Called to execute a command.

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

Parameters

commandName
String

The name of this command in this command set.

context
IReadOnlyDictionary<String,Object>

Captured command context properties.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task to track the asynchronous call status.

Applies to

ExecuteCommandAsync(UInt16, IReadOnlyDictionary<String,Object>, CancellationToken)

Called to execute a command.

public:
 System::Threading::Tasks::Task ^ ExecuteCommandAsync(System::UInt16 id, System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Object ^> ^ context, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task ExecuteCommandAsync (ushort id, System.Collections.Generic.IReadOnlyDictionary<string,object?> context, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteCommandAsync : uint16 * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ExecuteCommandAsync (id As UShort, context As IReadOnlyDictionary(Of String, Object), cancellationToken As CancellationToken) As Task

Parameters

id
UInt16

The id of this command in this command set.

context
IReadOnlyDictionary<String,Object>

Captured command context properties.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task to track the asynchronous call status.

Applies to