Condividi tramite


Behavior.FindCommand(CommandID) Metodo

Definizione

Intercetta comandi.

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

Parametri

commandId
CommandID

Un oggetto CommandID.

Restituisce

Oggetto MenuCommand. Per impostazione predefinita, il metodo FindCommand(CommandID) restituisce null.

Commenti

Il FindCommand metodo viene chiamato da BehaviorService. Offre un'opportunità per Behavior restituire il proprio oggetto personalizzato MenuCommand, intercettando in tal modo questo messaggio.

Si applica a

Vedi anche