MenuCommandService.FindCommand Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches for the MenuCommand associated with the given command ID.
Overloads
FindCommand(CommandID) |
Searches for the MenuCommand associated with the given command ID. |
FindCommand(Guid, Int32) |
Searches for the MenuCommand associated with the given command. |
FindCommand(CommandID)
Searches for the MenuCommand associated with the given command ID.
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
Parameters
Returns
The MenuCommand associated with the given command; otherwise, null
if the command is not found.
Implements
See also
Applies to
FindCommand(Guid, Int32)
Searches for the MenuCommand associated with the given command.
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
Parameters
- guid
- Guid
The GUID of the command.
- id
- Int32
The ID of the command.
Returns
The MenuCommand associated with the given command; otherwise, null
if the command is not found.
See also
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor