Compartir a través de


IExecutableCommand Interface

Definition

Represents a command that can be invoked. Enabled status can be set by changing IsEnabled and invoking a PropertyChanged event.

public interface IExecutableCommand : Microsoft.VisualStudio.Extensibility.Commands.ICommand, System.ComponentModel.INotifyPropertyChanged
type IExecutableCommand = interface
    interface ICommand
    interface INotifyPropertyChanged
Public Interface IExecutableCommand
Implements ICommand, INotifyPropertyChanged
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)
Id

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

(Inherited from ICommand)
IsEnabled

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

IsVisible

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

(Inherited from ICommand)
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.

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.

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