Compartir a través de


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

'Declaración
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
)

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.

.NET Framework Security

See Also

Reference

OleCommand Class

Microsoft.VisualStudio.Data Namespace