Compartilhar via


DynamicCommandAnchor Class

Definition

Provides a framework implementation of an anchor that commands can be dynamically added to and removed from.

public abstract class DynamicCommandAnchor : Microsoft.VisualStudio.Extensibility.Commands.PlaceholderCommand, Microsoft.VisualStudio.Extensibility.IVisualStudioContributionClass
type DynamicCommandAnchor = class
    inherit PlaceholderCommand
    interface IVisualStudioContributionClass
Public MustInherit Class DynamicCommandAnchor
Inherits PlaceholderCommand
Implements IVisualStudioContributionClass
Inheritance
DynamicCommandAnchor
Implements

Constructors

DynamicCommandAnchor(CommandSet)

Initializes a new instance of the DynamicCommandAnchor class.

Properties

CommandConfiguration

Gets the configuration for this command anchor. The value of this property is evaluated at compile time when building the Visual Studio extension.

DisplayName

Gets the display name for the command, or null if the display name comes from registered metadata.

(Inherited from PlaceholderCommand)
Flags

Gets the flags associated with the command.

(Inherited from PlaceholderCommand)
Id

Gets a unique id for this command within its command set.

(Inherited from PlaceholderCommand)
IsDisposed

Gets a value indicating whether this instance has been disposed.

(Inherited from PlaceholderCommand)
IsVisible

Gets a value indicating whether this command is visible or invisible.

(Inherited from PlaceholderCommand)
TooltipText

Gets the tooltip text for the command, or the display name if no tooltip text was provided.

(Inherited from PlaceholderCommand)

Methods

AddCommand(CommandMetadata, CommandCallbackAsync)

Register a command instance using command name and handler and anchor it to this group.

Dispose() (Inherited from PlaceholderCommand)
Dispose(Boolean)

Disposes the command instance.

(Inherited from PlaceholderCommand)
InitializeAsync(CancellationToken)

Completes async initialization of command instance.

(Inherited from PlaceholderCommand)
OnPropertyChanged(PropertyChangedEventArgs)

Fires PropertyChanged event.

(Inherited from PlaceholderCommand)
RemoveCommand(String)

Unregister a command.

SetVisibilityState(Nullable<Boolean>)

Set this command as visible, invisible, or null to determine the visibility state from registered metadata. Setting this value to null will fall back to using the registered metadata context rule if one was provided.

(Inherited from PlaceholderCommand)

Events

PropertyChanged (Inherited from PlaceholderCommand)

Applies to