語言

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 包含無效值。 此性質唯一有效的值為 Remove 和 NoAction。

備註

當你安裝事件日誌時,可以選擇性地將其連接到現有的日誌。 若如此,您必須決定日誌是否應回復安裝前的狀態,或維持安裝後的狀態。 如果你選擇將事件日誌還原到安裝前的狀態,安裝時事件日誌條目的變更不會被還原。 你只能把與 EventLogInstaller 相關聯的事件日誌屬性重設到它們的安裝前值。

適用於