CommandIdAttribute 类

定义

一个元数据属性,通过其 GUID 和 ID 标识 Visual Studio 命令。

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
继承
CommandIdAttribute
属性

构造函数

CommandIdAttribute(String, Int32)

创建 CommandIdAttribute 的新实例。

属性

CommandId

命令集中的命令 ID。

CommandSetGuid

命令所属的命令集。

适用于