Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Extrait l'état d'une commande avec OLE une demande d'un type particulier de texte de la commande.
Espace de noms : Microsoft.VisualStudio.Data
Assembly : Microsoft.VisualStudio.Data (dans Microsoft.VisualStudio.Data.dll)
Syntaxe
'Déclaration
Public Function GetCommandStatus ( _
itemId As Integer, _
command As OleCommand, _
textType As OleCommandTextType _
) As OleCommandStatus
public OleCommandStatus GetCommandStatus(
int itemId,
OleCommand command,
OleCommandTextType textType
)
public:
OleCommandStatus^ GetCommandStatus(
int itemId,
OleCommand^ command,
OleCommandTextType textType
)
member GetCommandStatus :
itemId:int *
command:OleCommand *
textType:OleCommandTextType -> OleCommandStatus
public function GetCommandStatus(
itemId : int,
command : OleCommand,
textType : OleCommandTextType
) : OleCommandStatus
Paramètres
- itemId
Type : System.Int32
L'ID d'élément pour lequel l'état de la commande doit être récupéré.
- command
Type : Microsoft.VisualStudio.Data.OleCommand
La commande pour rechercher le mode.
- textType
Type : Microsoft.VisualStudio.Data.OleCommandTextType
Le type de texte qui doit être récupéré.
Valeur de retour
Type : Microsoft.VisualStudio.Data.OleCommandStatus
Retourne un objet d' OleCommandStatus qui décrit l'état de OLE commande.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Le paramètre command est null. |
| ArgumentException | L'itemId spécifié n'est pas valide. |
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.