语言

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 事件日志属性。

适用于