SDL.TridionVSRazorExtension.Command.ItemContextDebugCommand.ItemContextDebugCommand C# (CSharp) Метод

ItemContextDebugCommand() приватный Метод

Initializes a new instance of the ItemContextDebugCommand class. Adds our command handlers for menu (commands must exist in the command table file)
private ItemContextDebugCommand ( Package package ) : System
package Package Owner package, not null.
Результат System
        private ItemContextDebugCommand(Package package)
        {
            if (package == null)
            {
                throw new ArgumentNullException("package");
            }

            this._package = package;

            OleMenuCommandService commandService = this.ServiceProvider.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
            if (commandService != null)
            {
                var menuCommandID = new CommandID(CommandSet, CommandId);
                var menuItem = new OleMenuCommand(MenuItemCallback, null, BeforeQueryStatus, menuCommandID);
                commandService.AddCommand(menuItem);
            }
        }