public override void Unregister(RegistrationAttribute.RegistrationContext context)
        {
            context.RemoveValue(string.Format(SupportedTestTypesKey, _hostAdapterName), _testTypeGuid);
            context.RemoveKeyIfEmpty(string.Format(SupportedTestTypesKey, _hostAdapterName));

            context.RemoveValue(string.Format(SupportedHostAdaptersKey, _testTypeGuid), _hostAdapterName);
            context.RemoveKeyIfEmpty(string.Format(SupportedHostAdaptersKey, _testTypeGuid));
        }
        /// <summary>Removes registration information about a VSPackage when called by an external registration tool such as regpkg.exe.</summary>
        /// <param name="context">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. </param>
        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));
        }
Esempio n. 3
0
 /// <summary>
 /// </summary>
 /// <param name="context"></param>
 /// <include file="doc\RegistrationAttribute.uex" path="docs/doc[@for=&quot;Unregister&quot;]"/>
 /// <devdoc>
 /// Called to unregister this attribute with the given context.  The context
 /// contains the location where the registration information should be removed.
 /// It also contains things such as the type being unregistered, and path information.
 /// </devdoc>
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveValue(RegistryPath, new Guid(_theme).ToString("B"));
     context.RemoveKeyIfEmpty(RegistryPath);
 }