Compartir a través de


CommandSet.RegisterDynamicCommandAnchorAsync(Type) Method

Definition

Registers a command anchor defined by the provided type. This is only for command anchors that are also registered in extension.json.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Commands.DynamicCommandAnchor> RegisterDynamicCommandAnchorAsync (Type dynamicCommandAnchorType);
member this.RegisterDynamicCommandAnchorAsync : Type -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Commands.DynamicCommandAnchor>
Public Function RegisterDynamicCommandAnchorAsync (dynamicCommandAnchorType As Type) As Task(Of DynamicCommandAnchor)

Parameters

dynamicCommandAnchorType
Type

Type of the command to register.

Returns

Created command anchor instance.

Applies to