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 关联的事件日志属性重置为其预安装值。

适用于