Commands2 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
以对象的形式包含环境中的所有命令 Command 。
public interface class Commands2 : EnvDTE::Commands
public interface class Commands2 : EnvDTE::Commands
__interface Commands2 : EnvDTE::Commands
[System.Runtime.InteropServices.Guid("7EAA857B-2356-494B-9E13-0F6EEFA86E43")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface Commands2 : EnvDTE.Commands
[<System.Runtime.InteropServices.Guid("7EAA857B-2356-494B-9E13-0F6EEFA86E43")>]
[<System.Runtime.InteropServices.TypeLibType(4160)>]
type Commands2 = interface
interface Commands
Public Interface Commands2
Implements Commands
- 属性
- 实现
属性
| Count |
获取一个值,该值指示集合中的对象数 Commands 。 |
| DTE |
获取顶级扩展性对象。 |
| Parent |
获取集合的直接父对象 Commands 。 |
方法
| Add(String, Int32, Object) |
仅供 Microsoft 内部使用。 |
| AddCommandBar(String, vsCommandBarType, Object, Int32) |
创建一个命令栏,该命令栏被保存并且在下次启动环境时可用。 |
| AddNamedCommand(AddIn, String, String, String, Boolean, Int32, Object[], Int32) |
创建命名命令,该命令由环境保存,并且在下次环境启动时可用。 |
| AddNamedCommand2(AddIn, String, String, String, Boolean, Object, Object[], Int32, Int32, vsCommandControlType) |
创建命名命令,该命令由环境保存,并且在下次环境启动时(即使环境启动时未加载外接程序)可用。 |
| CommandInfo(Object, String, Int32) |
返回与给定控件关联的命令 GUID 和 ID CommandBar 。 |
| GetEnumerator() |
获取集合中项的枚举器 Commands 。 |
| Item(Object, Int32) |
返回集合的索引成员。 |
| Raise(String, Int32, Object, Object) |
执行指定的命令。 |
| RemoveCommandBar(Object) |
删除使用方法创建的命令栏 AddCommandBar(String, vsCommandBarType, Object, Int32) 。 |
| UpdateCommandUI(Boolean) |
强制刷新命令 UI 状态。 |