AsmHighlighter.RegisterExpressionEvaluatorAttribute.Unregister C# (CSharp) Method

Unregister() public method

Removes registration information about a VSPackage when called by an external registration tool such as regpkg.exe.
public Unregister ( Microsoft.VisualStudio.Shell.RegistrationAttribute context ) : void
context Microsoft.VisualStudio.Shell.RegistrationAttribute A registration context provided by an external registration tool. The context can be used to remove registry keys, log registration activity, and obtain information about the component being registered.
return void
        public override void Unregister(RegistrationAttribute.RegistrationContext context)
        {
            if (context == null) return;
            #if DEBUG
            Console.WriteLine("Unregistering AsmHighlighter Expression Evaluator");
            #endif
            context.RemoveKey(string.Format("AD7Metrics\\ExpressionEvaluator\\{0:B}\\{1:B}", languageGuid, vendorGuid));
            context.RemoveKeyIfEmpty(string.Format("AD7Metrics\\ExpressionEvaluator\\{0:B}", languageGuid));
        }