ICommandService.CanExecuteCommand(Int32) 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.
Vérifie si la commande spécifiée peut être exécutée.
public:
bool CanExecuteCommand(int commandId);
public bool CanExecuteCommand (int commandId);
abstract member CanExecuteCommand : int -> bool
Public Function CanExecuteCommand (commandId As Integer) As Boolean
Paramètres
- commandId
- Int32
Identificateur de commande à vérifier.
Retours
true si la commande spécifiée peut être exécutée ; sinon false.
Exceptions
La commande n'est pas prise en charge.