MessageQueueInstaller.Uninstall(IDictionary) 方法

定义

通过从注册表中移除队列信息来移除安装。 此方法应该由卸载工具使用,卸载工具自动调用相应的方法。

public:
 override void Uninstall(System::Collections::IDictionary ^ savedState);
public override void Uninstall (System.Collections.IDictionary savedState);
override this.Uninstall : System.Collections.IDictionary -> unit
Public Overrides Sub Uninstall (savedState As IDictionary)

参数

savedState
IDictionary

一个 IDictionary,它包含计算机的安装后状态。

注解

如果 为 UninstallActionRemoveUninstall 则还会删除与 MessageQueue关联的队列。

通常,你不会从代码中调用 的方法 MessageQueueInstaller ;它们通常仅由 InstallUtil.exe 安装实用工具 (在卸载模式下) 调用。 实用工具自动调用 Uninstall 方法,将受安装影响的系统部分还原到其预安装状态。 这包括删除与正在卸载的 MessageQueue 关联的注册表信息。

应用程序的卸载例程使用项目安装程序的 Installer.Context 自动维护有关已卸载的组件的信息。 此状态信息作为 savedState 参数传递给 Uninstall ,在实用工具卸载每个MessageQueueInstaller实例时会不断更新。 通常,代码不需要显式修改此状态信息。

适用于

另请参阅