다음을 통해 공유


CommandSet.RegisterAnchoredCommand(IDynamicCommand, String) Method

Definition

Register an existing command implementation that is to be parented to a dynamic command anchor.

public void RegisterAnchoredCommand (Microsoft.VisualStudio.Extensibility.Commands.IDynamicCommand command, string dynamicCommandAnchorIdentifier);
member this.RegisterAnchoredCommand : Microsoft.VisualStudio.Extensibility.Commands.IDynamicCommand * string -> unit
Public Sub RegisterAnchoredCommand (command As IDynamicCommand, dynamicCommandAnchorIdentifier As String)

Parameters

command
IDynamicCommand

Command instance to register.

dynamicCommandAnchorIdentifier
String

The identifier of the dynamic command anchor that the command should be anchored to.

Applies to