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

備註

UninstallActionRemoveUninstall 則也會刪除與 MessageQueue相關聯的佇列。

通常,你不會在程式碼中呼叫 from MessageQueueInstaller (from)的方法;它們通常只會由安裝工具(卸載模式)InstallUtil.exe 安裝工具呼叫。 該工具會自動呼叫該 Uninstall 方法,將受安裝影響的系統部分恢復到安裝前的狀態。 這包括刪除與被卸載的 MessageQueue 相關的登錄檔資訊。

應用程式的卸載例程會利用專案安裝程式 Installer.Context 自動維護已卸載元件的資訊。 這個狀態資訊作為參數傳遞,UninstallsavedState隨著工具卸載每個MessageQueueInstaller實例,會持續更新。 通常,你的程式碼不需要明確修改這些狀態資訊。

適用於

另請參閱