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.GlobalInvoke

Invokes a command on the local form or in the global environment.

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

Parameters

commandID
The command ID to search for and execute.

Return Value

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

Remarks

The local form is first searched for the given command ID. If it is found, it is invoked. Otherwise the the command ID is passed to the global environment command handler, if one is available.

See Also

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