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)); }
public override void Unregister(RegistrationAttribute.RegistrationContext context) { if (context == null) { throw new ArgumentNullException("context"); } context.RemoveValue(@"TextTemplating\IncludeFolders\" + this.Extension, string.Format(CultureInfo.InvariantCulture, "Include{0}", new object[] { this.Index })); context.Log.WriteLine(string.Format(CultureInfo.CurrentCulture, Microsoft.VisualStudio.TextTemplating.VSHost.Resources.ProvideIncludeFolderLogUnregistered, new object[] { this.Extension, this.Index, this.Folder })); }
private void Unregister(RegistrationAttribute.RegistrationContext context, string prefix, RegKey regKey) { prefix += "\\" + regKey.Key; foreach (var registrySubKey in regKey.SubKeys) { Unregister(context, prefix, registrySubKey); } foreach (var value in regKey.Values) { context.RemoveValue(prefix, value.Key); } if (regKey.Package != null) { context.RemoveValue(prefix, regKey.Package); } }
public override void Unregister(RegistrationAttribute.RegistrationContext context) { context.RemoveValue(RegKey, _fileExtension); }
/// <summary> /// </summary> /// <param name="context"></param> /// <include file="doc\RegistrationAttribute.uex" path="docs/doc[@for="Unregister"]"/> /// <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); }
public override void Unregister(RegistrationAttribute.RegistrationContext context) { context.RemoveValue(RegKey, "ShowBraceCompletion"); }