本文整理汇总了C#中Microsoft.VisualStudio.Shell.RegistrationAttribute.RemoveKey方法的典型用法代码示例。如果您正苦于以下问题:C# RegistrationAttribute.RemoveKey方法的具体用法?C# RegistrationAttribute.RemoveKey怎么用?C# RegistrationAttribute.RemoveKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.VisualStudio.Shell.RegistrationAttribute
的用法示例。
在下文中一共展示了RegistrationAttribute.RemoveKey方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Unregister
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public override void Unregister (RegistrationAttribute.RegistrationContext context)
{
context.RemoveKey (CLSIDKey);
}
示例2: Unregister
public override void Unregister(RegistrationAttribute.RegistrationContext context) {
if (context != null) {
context.RemoveKey(String.Format(CultureInfo.InvariantCulture, "{0}\\{1}",
ToolboxControlsInstallerPath,
context.ComponentType.Assembly.FullName));
}
}
示例3: Unregister
/// <include file='doc\ProvideLanguageCodeExpansionAttribute.uex' path='docs/doc[@for="ProvideLanguageCodeExpansionAttribute.Unregister"]' />
public override void Unregister(RegistrationAttribute.RegistrationContext context)
{
context.RemoveKey(LanguageRegistryKey);
}
示例4: Unregister
/// <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));
}
示例5: Unregister
/// <include file='doc\ProvideLanguageServiceAttribute.uex' path='docs/doc[@for="ProvideLanguageServiceAttribute.Unregister"]' />
public override void Unregister(RegistrationAttribute.RegistrationContext context)
{
context.RemoveKey(LanguageServicesKeyName);
}
示例6: RemoveRegistryEntries
internal static void RemoveRegistryEntries(RegistrationAttribute.RegistrationContext context, string languageName, string categoryName)
{
context.RemoveKey(FormatRegKey(languageName, categoryName));
}
示例7: Unregister
public override void Unregister(RegistrationAttribute.RegistrationContext context)
{
context.RemoveKey("Text Editor\\External Markers\\{" + GuidConstants.BaseMarkerGuid + "}");
}
示例8: Unregister
public override void Unregister(RegistrationAttribute.RegistrationContext context)
{
context.RemoveKey(GetKey(_key));
}
示例9: Unregister
public override void Unregister(RegistrationAttribute.RegistrationContext context)
{
context.RemoveKey(REG_KEY_CONNECTORS + "\\" + RegGuid.ToString("B"));
}
示例10: Unregister
public override void Unregister(RegistrationAttribute.RegistrationContext context)
{
context.RemoveKey(@"DataProviders\{" + GuidList.guidNpgsqlDdexProviderDataProviderString + @"}");
context.RemoveKey(@"DataSources\{" + GuidList.guidNpgsqlDdexProviderDataSourceString + @"}");
}
示例11: Unregister
/// <summary>
/// Delete our specified keys
/// </summary>
/// <param name="context">The context that this registration attribute is being used in</param>
public override void Unregister(RegistrationAttribute.RegistrationContext context)
{
context.RemoveKey(@"Generators\" + this.ProjectSystem + @"\" + this.Name);
context.RemoveKey(@"CLSID\{" + this.Type.GUID + @"}");
context.Log.WriteLine(string.Format(
CultureInfo.CurrentCulture,
Resources.ProvideCodeGeneratorAttribute_UnregisterLog,
this.Name,
this.Type.GUID));
}