ICommandService.CanExecuteCommand(Int32) Méthode

Définition

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.

S’applique à