IMenuCommandService.GlobalInvoke(CommandID) 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.
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
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
משוב
https://aka.ms/ContentUserFeedback.
בקרוב: במהלך 2024, נפתור בעיות GitHub כמנגנון המשוב לתוכן ונחליף אותו במערכת משוב חדשה. לקבלת מידע נוסף, ראה:שלח והצג משוב עבור