public UnRegisterCommand ( Microsoft.VisualStudio.Shell.OleMenuCommand command ) : void | ||
command | Microsoft.VisualStudio.Shell.OleMenuCommand | |
return | void |
public void UnRegisterCommand(OleMenuCommand command)
{
if (_registeredCommands.SingleOrDefault(
cmd => cmd.CommandID.Guid.Equals(command.CommandID.Guid) &&
cmd.CommandID.ID.Equals(command.CommandID.ID)) != null)
{
_registeredCommands.Remove(command);
}
}