Partilhar via


Behavior.FindCommand(CommandID) Método

Definição

Intercepta comandos.

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

Parâmetros

commandId
CommandID

Um objeto CommandID.

Retornos

Um MenuCommand. Por padrão, FindCommand(CommandID) retorna null.

Comentários

O FindCommand método é chamado do BehaviorService. Ele oferece uma oportunidade para o Behavior retornar seu próprio personalizado MenuCommand, interceptando assim essa mensagem.

Aplica-se a

Confira também