NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IMenuCommandService.FindCommand

Searches for the given command ID and returns the MenuCommand associated with it.

[Visual Basic]
Function FindCommand( _
   ByVal commandID As CommandID _
) As MenuCommand
[C#]
MenuCommand FindCommand(
   CommandID commandID
);
[C++]
MenuCommand* FindCommand(
   CommandID* commandID
) = 0;
[JScript]
function FindCommand(
   commandID : CommandID
) : MenuCommand;

Parameters

commandID
The command ID to search for.

Return Value

The menu command associated with this command ID, or a null reference (in Visual Basic Nothing) if no command is found.

See Also

IMenuCommandService Interface | IMenuCommandService Members | System.ComponentModel.Design Namespace