共用方式為


CommandSet.RegisterCommand(ICommand) Method

Definition

Register an existing command implementation. This is only for commands that are also registered in extension.json.

public void RegisterCommand (Microsoft.VisualStudio.Extensibility.Commands.ICommand command);
member this.RegisterCommand : Microsoft.VisualStudio.Extensibility.Commands.ICommand -> unit
Public Sub RegisterCommand (command As ICommand)

Parameters

command
ICommand

Command instance to register.

Applies to