語言

Installer.OnBeforeRollback(IDictionary) 方法

定義

引發 BeforeRollback 事件。

protected:
 virtual void OnBeforeRollback(System::Collections::IDictionary ^ savedState);
protected virtual void OnBeforeRollback(System.Collections.IDictionary savedState);
abstract member OnBeforeRollback : System.Collections.IDictionary -> unit
override this.OnBeforeRollback : System.Collections.IDictionary -> unit
Protected Overridable Sub OnBeforeRollback (savedState As IDictionary)

參數

savedState
IDictionary

一個 IDictionary 包含安裝人員回滾前 Installers 電腦狀態的檔案。

備註

此方法在呼叫安裝程式Rollback之前就被呼叫InstallerCollection。

發起事件會透過代理呼叫事件處理者。 欲了解更多資訊,請參閱 處理與提升事件。

此 OnBeforeRollback 方法允許衍生類別在不附加代理的情況下處理事件。 這是在衍生類別中處理事件的首選技術。

給繼承者的注意事項

在導出類別中覆寫 OnBeforeRollback(IDictionary) 時,務必呼叫基底類別的方法 OnBeforeRollback(IDictionary) ,讓註冊代理接收事件。

適用於

另請參閱