CommandIdAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一个元数据属性,通过其 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 |
命令所属的命令集。 |