Partager via


IChainedCommandHandler<T>.ExecuteCommand Method

Definition

Called to execute the command. If this implementation does not execute the command, nextCommandHandler should be called so that other ICommandHandlers may act on this command.

public:
 void ExecuteCommand(T args, Action ^ nextCommandHandler, Microsoft::VisualStudio::Commanding::CommandExecutionContext ^ executionContext);
public void ExecuteCommand (T args, Action nextCommandHandler, Microsoft.VisualStudio.Commanding.CommandExecutionContext executionContext);
abstract member ExecuteCommand : 'T * Action * Microsoft.VisualStudio.Commanding.CommandExecutionContext -> unit
Public Sub ExecuteCommand (args As T, nextCommandHandler As Action, executionContext As CommandExecutionContext)

Parameters

args
T

The CommandArgs arguments for the command.

nextCommandHandler
Action

The next command handler in the command execution chain.

executionContext
CommandExecutionContext

Execution context associated with this operation.

Applies to