MenuCommandService.GlobalInvoke Method (CommandID)


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

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

public virtual bool GlobalInvoke(
	CommandID commandID


Type: System.ComponentModel.Design.CommandID

The command to invoke.

Return Value

Type: System.Boolean

true, if the command was found; otherwise, false.

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

.NET Framework
Available since 2.0
Return to top