Share via


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,包含電腦的後續安裝狀態。

備註

UninstallAction如果 為 RemoveUninstall也會刪除與相關聯的MessageQueue佇列。

一般而言,您不會從程式代碼中呼叫 的方法 MessageQueueInstaller ;通常只會由 InstallUtil.exe 安裝公用程式在卸載模式中呼叫 () 。 公用程式會自動呼叫 Uninstall 方法,將受安裝影響的系統元件還原到其安裝前狀態。 這包括刪除與要卸載之 MessageQueue 相關聯的登錄資訊。

應用程式的卸載例程會使用專案安裝程式 Installer.Context 自動維護已卸載之元件的相關信息。 當公用程式卸載每個MessageQueueInstaller實例時,會持續更新傳遞至 UninstallsavedState為 參數的狀態資訊。 通常,您的程式代碼不需要明確修改此狀態資訊。

適用於

另請參閱