Partager via


FlavoredProject.QueryStatusCommand, méthode

Obtient l'état des commandes spécifiées.

Espace de noms :  Microsoft.VisualStudio.Shell.Flavor
Assembly :  Microsoft.VisualStudio.Shell.11.0 (dans Microsoft.VisualStudio.Shell.11.0.dll)

Syntaxe

'Déclaration
Protected Overridable Function QueryStatusCommand ( _
    itemid As UInteger, _
    ByRef pguidCmdGroup As Guid, _
    cCmds As UInteger, _
    prgCmds As OLECMD(), _
    pCmdText As IntPtr _
) As Integer
protected virtual int QueryStatusCommand(
    uint itemid,
    ref Guid pguidCmdGroup,
    uint cCmds,
    OLECMD[] prgCmds,
    IntPtr pCmdText
)

Paramètres

  • itemid
    Type : System.UInt32
    L'IDENTIFICATEUR de l'élément étant interrogé.
  • pguidCmdGroup
    Type : System.Guid%
    GUID du groupe de commandes auquel les commandes appartiennent.
  • cCmds
    Type : System.UInt32
    Le nombre de commandes dans la matrice d'prgCmds.
  • pCmdText
    Type : System.IntPtr
    Un pointeur à une structure d'OLECMDTEXT contenant le nom et/ou les informations d'état sur la commande.

Valeur de retour

Type : System.Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Remarques

Ce appels de méthode la méthode d'QueryStatusCommand sur le projet interne.

Sécurité .NET Framework

Voir aussi

Référence

FlavoredProject Classe

Microsoft.VisualStudio.Shell.Flavor, espace de noms