Share via


Behavior.FindCommand(CommandID) Yöntem

Tanım

Komutları durdurur.

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

Parametreler

commandId
CommandID

Bir CommandID nesnesi.

Döndürülenler

Bir MenuCommand. Varsayılan olarak döndürür FindCommand(CommandID)null.

Açıklamalar

FindCommand yönteminden çağrılırBehaviorService. kendi özel MenuCommanddeğerini döndürmesi için Behavior bir fırsat sağlar ve böylece bu iletinin yolunu kesir.

Şunlara uygulanır

Ayrıca bkz.