次の方法で共有


IDynamicCommand Interface

Definition

Represents a command that can be dynamically created.

public interface IDynamicCommand : Microsoft.VisualStudio.Extensibility.Commands.IToggleCommand, System.ComponentModel.INotifyPropertyChanged
type IDynamicCommand = interface
    interface IToggleCommand
    interface IExecutableCommand
    interface ICommand
    interface INotifyPropertyChanged
Public Interface IDynamicCommand
Implements INotifyPropertyChanged, IToggleCommand
Derived
Implements

Properties

DisplayName

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

(Inherited from ICommand)
Flags

Gets the flags associated with the command.

(Inherited from ICommand)
IconName

Gets the name of the icon that should be associated with this command.

Id

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

(Inherited from ICommand)
IsChecked

Gets a value indicating whether this command is toggled.

(Inherited from IToggleCommand)
IsEnabled

Gets a value indicating whether this command is enabled or disabled.

(Inherited from IExecutableCommand)
IsVisible

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

(Inherited from ICommand)
RelativeDisplayOrder

Gets the relative display order of the command. Used when determining its specific placement.

TooltipText

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

(Inherited from ICommand)

Methods

ExecuteCommandAsync(IReadOnlyDictionary<String,Object>, CancellationToken)

Called to invoke the command.

(Inherited from IExecutableCommand)
InitializeAsync(CancellationToken)

Completes async initialization of command instance.

(Inherited from ICommand)
SetEnabledState(Nullable<Boolean>)

Set this command as enabled, disabled, or null to determine the enabled 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 IExecutableCommand)
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 ICommand)

Applies to