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!

MenuCommand Constructor

Initializes a new instance of MenuCommand.

[Visual Basic]
Public Sub New( _
   ByVal handler As EventHandler, _
   ByVal command As CommandID _
)
[C#]
public MenuCommand(
   EventHandler handler,
   CommandID command
);
[C++]
public: MenuCommand(
   EventHandler* handler,
   CommandID* command
);
[JScript]
public function MenuCommand(
   handler : EventHandler,
   command : CommandID
);

Parameters

handler
The event to raise when the user selects the menu item or toolbar button.
command
The unique command ID that is used to link this menu command to the environment's menu.

Remarks

This menu command can then be added to the IMenuCommandService.

See Also

MenuCommand Class | MenuCommand Members | System.ComponentModel.Design Namespace | IMenuCommandService | CommandID