EventLogInstaller.UninstallAction 屬性

定義

取得或設定值,指出在解除安裝時,Installutil.exe (安裝程式工具) 應該移除事件記錄檔,還是將它保留在已安裝的狀態。

public:
 property System::Configuration::Install::UninstallAction UninstallAction { System::Configuration::Install::UninstallAction get(); void set(System::Configuration::Install::UninstallAction value); };
public System.Configuration.Install.UninstallAction UninstallAction { get; set; }
member this.UninstallAction : System.Configuration.Install.UninstallAction with get, set
Public Property UninstallAction As UninstallAction

屬性值

其中一個 UninstallAction 值,表示解除安裝 EventLog 時,要讓事件記錄檔保持什麼狀態。 預設為 Remove

例外狀況

UninstallAction 包含無效的值。 這個屬性的有效值只有 RemoveNoAction

備註

當您安裝事件記錄檔時,可以選擇性地將它連線到現有的記錄檔。 如果您這樣做,您必須決定記錄檔是否應該回到其安裝前狀態,或保留在其目前的安裝后狀態。 如果您選擇將事件記錄檔傳回其安裝前狀態,則不會還原安裝時的事件記錄檔項目變更。 您只能重設與其預設安裝值相關聯的 EventLogInstaller 事件記錄檔屬性。

適用於