Behavior.FindCommand(CommandID) 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.
Intercepte les commandes.
public:
virtual System::ComponentModel::Design::MenuCommand ^ FindCommand(System::ComponentModel::Design::CommandID ^ commandId);
public virtual System.ComponentModel.Design.MenuCommand FindCommand(System.ComponentModel.Design.CommandID commandId);
public virtual System.ComponentModel.Design.MenuCommand? FindCommand(System.ComponentModel.Design.CommandID commandId);
abstract member FindCommand : System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
override this.FindCommand : System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
Public Overridable Function FindCommand (commandId As CommandID) As MenuCommand
Paramètres
Retours
Un MenuCommand. Par défaut, FindCommand(CommandID) retourne null.
Remarques
La FindCommand méthode est appelée à partir du BehaviorService. Il offre l’occasion de Behavior retourner son propre message personnalisé MenuCommand, interceptant ainsi ce message.