CommandSet.RegisterDynamicCommandAnchorAsync(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.