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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.