Επεξεργασία

Κοινή χρήση μέσω


IMenuCommandService.GlobalInvoke(CommandID) Method

Definition

Invokes a menu or designer verb command matching the specified command ID.

public:
 bool GlobalInvoke(System::ComponentModel::Design::CommandID ^ commandID);
public bool GlobalInvoke (System.ComponentModel.Design.CommandID commandID);
abstract member GlobalInvoke : System.ComponentModel.Design.CommandID -> bool
Public Function GlobalInvoke (commandID As CommandID) As Boolean

Parameters

commandID
CommandID

The CommandID of the command to search for and execute.

Returns

true if the command was found and invoked successfully; otherwise, false.

Remarks

This method searches for a menu command or designer verb with a CommandID matching the specified CommandID. This method first searches within the designer verbs collection consisting of global and active designer-provided verbs before continuing the search, if necessary, through the global environment command service. If a matching menu command or designer verb is located, the command is invoked.

Applies to

See also