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

Adds a menu command to the document.

[Visual Basic]
Sub AddCommand( _
   ByVal command As MenuCommand _
)
[C#]
void AddCommand(
   MenuCommand command
);
[C++]
void AddCommand(
   MenuCommand* command
) = 0;
[JScript]
function AddCommand(
   command : MenuCommand
);

Parameters

command
The command to add.

Remarks

The menu command must already exist on a menu; this method merely adds a handler for it.

See Also

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