OleCommand Constructor

Class constructor. Initializes a new instance of the OleCommand class with command group identifier and command identifier.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Public Sub New ( _
    groupGuid As Guid, _
    commandId As Integer _
)
'使用
Dim groupGuid As Guid
Dim commandId As Integer

Dim instance As New OleCommand(groupGuid, _
    commandId)
public OleCommand(
    Guid groupGuid,
    int commandId
)
public:
OleCommand(
    Guid groupGuid, 
    int commandId
)
public function OleCommand(
    groupGuid : Guid, 
    commandId : int
)

Parameters

  • groupGuid
    Type: System.Guid

    GUID of the menu group for the specified command.

  • commandId
    Type: System.Int32

    The ID of the command within the specified menu group.

Permissions

See Also

Reference

OleCommand Class

OleCommand Members

Microsoft.VisualStudio.Data Namespace