IMenuCommandService.FindCommand Method (CommandID)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Searches for the specified command ID and returns the menu command associated with it.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

MenuCommand FindCommand(
	CommandID commandID
)

Parameters

commandID
Type: System.ComponentModel.Design.CommandID

The CommandID to search for.

Return Value

Type: System.ComponentModel.Design.MenuCommand

The MenuCommand associated with the command ID, or null if no command is found.

.NET Framework
Available since 1.1
Return to top
Show: