OleCommand 构造函数

选件类构造函数。初始化 OleCommand 选件类的新实例与命令组标识符和订单标识符的。

命名空间:  Microsoft.VisualStudio.Data
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)

语法

声明
Public Sub New ( _
    groupGuid As Guid, _
    commandId As Integer _
)
public OleCommand(
    Guid groupGuid,
    int commandId
)
public:
OleCommand(
    Guid groupGuid, 
    int commandId
)
new : 
        groupGuid:Guid * 
        commandId:int -> OleCommand
public function OleCommand(
    groupGuid : Guid, 
    commandId : int
)

参数

  • groupGuid
    类型:System.Guid
    菜单组的GUID指定的命令。
  • commandId
    类型:System.Int32
    命令的ID在指定的菜单组中。

.NET Framework 安全性

请参见

参考

OleCommand 类

Microsoft.VisualStudio.Data 命名空间