Compartilhar via


MenuCommandService.FindCommand Método

Definição

Procura o MenuCommand associado à ID de comando especificada.

Sobrecargas

FindCommand(CommandID)

Procura o MenuCommand associado à ID de comando especificada.

FindCommand(Guid, Int32)

Procura o MenuCommand associado ao comando especificado.

FindCommand(CommandID)

Procura o MenuCommand associado à ID de comando especificada.

public:
 virtual System::ComponentModel::Design::MenuCommand ^ FindCommand(System::ComponentModel::Design::CommandID ^ commandID);
public System.ComponentModel.Design.MenuCommand FindCommand (System.ComponentModel.Design.CommandID commandID);
public 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 Function FindCommand (commandID As CommandID) As MenuCommand

Parâmetros

commandID
CommandID

O CommandID a ser localizado.

Retornos

O MenuCommand associado ao comando fornecido; caso contrário, null se o comando não for encontrado.

Implementações

Confira também

Aplica-se a

FindCommand(Guid, Int32)

Procura o MenuCommand associado ao comando especificado.

protected:
 System::ComponentModel::Design::MenuCommand ^ FindCommand(Guid guid, int id);
protected System.ComponentModel.Design.MenuCommand FindCommand (Guid guid, int id);
protected System.ComponentModel.Design.MenuCommand? FindCommand (Guid guid, int id);
member this.FindCommand : Guid * int -> System.ComponentModel.Design.MenuCommand
Protected Function FindCommand (guid As Guid, id As Integer) As MenuCommand

Parâmetros

guid
Guid

O GUID do comando.

id
Int32

A ID do comando.

Retornos

O MenuCommand associado ao comando fornecido; caso contrário, null se o comando não for encontrado.

Confira também

Aplica-se a