OleCommand(Guid, Int32) 构造函数

定义

类构造函数。 OleCommand使用命令组标识符和命令标识符初始化类的新实例。

public:
 OleCommand(Guid groupGuid, int commandId);
public OleCommand (Guid groupGuid, int commandId);
new Microsoft.VisualStudio.Data.OleCommand : Guid * int -> Microsoft.VisualStudio.Data.OleCommand
Public Sub New (groupGuid As Guid, commandId As Integer)

参数

groupGuid
Guid

指定命令的菜单组的 GUID。

commandId
Int32

指定菜单组中的命令 ID。

适用于