Share via


CommandShortcutConfiguration Class

Definition

An attribute used on Command classes to specify the command shortcut.

[System.Runtime.Serialization.DataContract]
public sealed class CommandShortcutConfiguration : IEquatable<Microsoft.VisualStudio.Extensibility.Commands.CommandShortcutConfiguration>
[<System.Runtime.Serialization.DataContract>]
type CommandShortcutConfiguration = class
    interface IEquatable<CommandShortcutConfiguration>
Public NotInheritable Class CommandShortcutConfiguration
Implements IEquatable(Of CommandShortcutConfiguration)
Inheritance
CommandShortcutConfiguration
Attributes
Implements

Constructors

CommandShortcutConfiguration(ModifierKey, Key, Guid)

Initializes a new instance of the CommandShortcutConfiguration class.

CommandShortcutConfiguration(ModifierKey, Key, ModifierKey, Key, Guid)

Initializes a new instance of the CommandShortcutConfiguration class.

CommandShortcutConfiguration(ModifierKey, Key, ModifierKey, Key)

Initializes a new instance of the CommandShortcutConfiguration class.

CommandShortcutConfiguration(ModifierKey, Key)

Initializes a new instance of the CommandShortcutConfiguration class.

Properties

ActivationConstraint

Gets the optional UI Context GUID used to scope the shortcut.

Key1

Gets the first key for this shortcut.

Key2

Gets the optional second key for this shortcut.

Mod1

Gets the first modifier key for this shortcut.

Mod2

Gets the optional second modifier key for this shortcut.

Methods

Equals(CommandShortcutConfiguration)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

Applies to