本文整理汇总了C#中RegistrationContext.RemoveKeyIfEmpty方法的典型用法代码示例。如果您正苦于以下问题:C# RegistrationContext.RemoveKeyIfEmpty方法的具体用法?C# RegistrationContext.RemoveKeyIfEmpty怎么用?C# RegistrationContext.RemoveKeyIfEmpty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RegistrationContext
的用法示例。
在下文中一共展示了RegistrationContext.RemoveKeyIfEmpty方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Unregister
public override void Unregister(RegistrationContext context)
{
if (context == null)
{
return;
}
context.RemoveKey(String.Format("{0}\\{1:B}\\{2:B}", EXPRESSION_EVALUATOR_REGISTRY_PATH, _languageGuid, _vendorGuid));
context.RemoveKeyIfEmpty(String.Format("{0}\\{1:B}", EXPRESSION_EVALUATOR_REGISTRY_PATH, _languageGuid));
}
示例2: Unregister
public override void Unregister(RegistrationContext context)
{
if (context == null)
{
throw new ArgumentNullException("context");
}
context.RemoveKey(GetKeyName());
context.RemoveValue(XmlChooserEditorExtensionsKeyPath, extension);
context.RemoveKeyIfEmpty(XmlChooserEditorExtensionsKeyPath);
}
开发者ID:Sunzhuokai,项目名称:VSSDK-Extensibility-Samples,代码行数:12,代码来源:ProvideXmlEditorChooserDesignerViewAttribute.cs
示例3: Unregister
public override void Unregister( RegistrationContext context )
{
foreach( var kvp in Values )
context.RemoveValue( RelativeKeyPath, kvp.Key );
context.RemoveKeyIfEmpty( RelativeKeyPath );
}
示例4: Unregister
/// <include file='doc\ProvideOptionPageAttribute.uex' path='docs/doc[@for="Unregister"]' />
/// <devdoc>
/// Called to remove this attribute from the given context.
/// </devdoc>
public override void Unregister(RegistrationContext context)
{
context.RemoveKey(ToolsOptionsPagesRegKey);
if (SupportsAutomation)
{
context.RemoveKey(AutomationRegKey);
context.RemoveKeyIfEmpty(AutomationCategoryRegKey);
}
}
示例5: Unregister
public override void Unregister(RegistrationContext context)
{
context.RemoveValue(this.ProjectRegKey, _valueName);
context.RemoveKeyIfEmpty(this.ProjectRegKey);
}
示例6: Unregister
/// <summary>
/// Unregister the custom editor
/// </summary>
/// <param name="context"></param>
public override void Unregister(RegistrationContext context)
{
/// Validate parameter input
if (context == null)
{
throw new ArgumentNullException("context");
}
/// Remove Key
context.RemoveKey(Path.Combine(XmlChooserFactory, keyName));
context.RemoveValue(XmlChooserEditorExtensionsKeyPath, defaultExtension);
context.RemoveKeyIfEmpty(XmlChooserEditorExtensionsKeyPath);
}