Constable Authorization Engine 2.0 BETA

IPolicyDesignContextControl.AddContextCommands Method 

[This is preliminary documentation and subject to change.]

Informs the control that it should add its own commands to the IPolicyDesignHost menus.

[Visual Basic]
Sub AddContextCommands()
[C#]
void AddContextCommands();

Remarks

The implementation should use the IPolicyDesignHost reference that was passed to the ContextActivated method.

The control should maintain an instance of the CommandManager class managing a set of context-specific Command objects. The control then adds menu items and toolbar buttons associated with the commands to the host menus (accessible though the GetHostMenu method) and the toolbar (accessible though the HostToolBar property). The association of commands with the menu items and toolbar buttons (commonly refered to as UI elements) allows the Policy Designer to remove the context specific commands upon the context deactivation (i.e. when calling the ContextDeactivated method).

See Also

IPolicyDesignContextControl Interface | LaMarvin.Constable.Design Namespace