Partager via


OleCommand, constructeur

Constructeur de classe.Initialise une nouvelle instance de la classe d' OleCommand avec l'identificateur et l'ID de commande de groupe de commandes.

Espace de noms :  Microsoft.VisualStudio.Data
Assembly :  Microsoft.VisualStudio.Data (dans Microsoft.VisualStudio.Data.dll)

Syntaxe

'Déclaration
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
)

Paramètres

  • groupGuid
    Type : System.Guid
    GUID du groupe de menus pour la commande spécifiée.
  • commandId
    Type : System.Int32
    L'ID de la commande dans le groupe de menus spécifié.

Sécurité .NET Framework

Voir aussi

Référence

OleCommand Classe

Microsoft.VisualStudio.Data, espace de noms