Package.IOleCommandTarget.Exec(Guid, UInt32, UInt32, IntPtr, IntPtr) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Exécute une commande spécifiée ou affiche l'aide d'une commande.
virtual int Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid % guidGroup, System::UInt32 nCmdId, System::UInt32 nCmdExcept, IntPtr pIn, IntPtr vOut) = Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget::Exec;
int IOleCommandTarget.Exec (ref Guid guidGroup, uint nCmdId, uint nCmdExcept, IntPtr pIn, IntPtr vOut);
abstract member Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec : Guid * uint32 * uint32 * nativeint * nativeint -> int
override this.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec : Guid * uint32 * uint32 * nativeint * nativeint -> int
Function Exec (ByRef guidGroup As Guid, nCmdId As UInteger, nCmdExcept As UInteger, pIn As IntPtr, vOut As IntPtr) As Integer Implements IOleCommandTarget.Exec
Paramètres
- guidGroup
- Guid
GUID spécifiant le groupe de commandes auquel appartient la commande.
- nCmdId
- UInt32
ID de la commande.
- nCmdExcept
- UInt32
Pointeur vers une structure OLECMDEXECOPT spécifiant le mode d'exécution de la commande.
- pIn
- IntPtr
Pointeur vers une structure VARIANTARG contenant les arguments d'entrée. Peut être null.
- vOut
- IntPtr
Pointeur vers une structure VARIANTARG pour recevoir la sortie de commande. Peut être null.
Retours
Cette méthode retourne S_OK en cas de réussite, sinon un code d'erreur. Si aucune instance de IOleCommandTarget n'est trouvée, retourne OLECMDERR_E_NOTSUPPORTED.