ProvideEditorExtensionAttribute.Unregister 方法
移除了有关 VSPackage 中注册信息,在调用由外部注册工具 (如 RegPkg.exe。 有关更多信息,请参见 注册 Vspackage。
命名空间: Microsoft.VisualStudio.Shell
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
Public Overrides Sub Unregister ( _
context As RegistrationAttribute.RegistrationContext _
)
public override void Unregister(
RegistrationAttribute.RegistrationContext context
)
参数
- context
类型:Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext
外部注册工具提供的寄存器上下文。上下文可用于创建注册表项,记录注册事件,并获取有关注册的元素的信息。
异常
异常 | 条件 |
---|---|
ArgumentNullException | ,如果 context 参数为空,则此方法引发 ArgumentNullException 。 |
备注
移除了有关 VSPackage 中注册信息,在调用由外部注册工具 (如 RegPkg.exe。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
ProvideEditorExtensionAttribute 类