共用方式為


OleCommand 建構函式

類別建構函式。 OleCommand 初始化類別的新執行個體命令群組識別項 (Command Identifier) 的。

命名空間:  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
    類型:Guid

    功能表群組 GUID 的指定命令的。

  • commandId
    類型:Int32

    命令的 ID 在指定的功能表群組中。

.NET Framework 安全性

請參閱

參考

OleCommand 類別

Microsoft.VisualStudio.Data 命名空間