Share via


CommandIdAttribute Class

Definition

A metadata attribute identifying a Visual Studio command by its GUID and ID.

public ref class CommandIdAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property, AllowMultiple=false)]
[System.ComponentModel.Composition.MetadataAttribute]
public sealed class CommandIdAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property, AllowMultiple=false)>]
[<System.ComponentModel.Composition.MetadataAttribute>]
type CommandIdAttribute = class
    inherit Attribute
Public NotInheritable Class CommandIdAttribute
Inherits Attribute
Inheritance
CommandIdAttribute
Attributes

Constructors

CommandIdAttribute(String, Int32)

Creates a new instance of the CommandIdAttribute.

Properties

CommandId

A command ID in the command set.

CommandSetGuid

A command set the command belongs to.

Applies to