ServiceSecurityAuditElement.SuppressAuditFailure 属性

定义

获取或设置一个布尔值,该值指定用于取消对审核日志的写入错误的行为。Gets or sets a Boolean value that specifies the behavior for suppressing failures of writing to the audit log.

public:
 property bool SuppressAuditFailure { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("suppressAuditFailure", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool SuppressAuditFailure { get; set; }
[<System.Configuration.ConfigurationProperty("suppressAuditFailure", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.SuppressAuditFailure : bool with get, set
Public Property SuppressAuditFailure As Boolean

属性值

Boolean

如果除 trueOutOfMemoryExceptionStackOverflowExceptionThreadAbortException 以外的由于试图写入审核事件而引发的异常由系统进行处理且不传播到应用程序,则为 ArgumentException;如果由于试图写入审核事件而引发的所有异常都向上传递给应用程序,则为 falsetrue if exceptions other than OutOfMemoryException, StackOverflowException, ThreadAbortException, and ArgumentException that result from attempts to write audit events are handled by the system, and are not propagated to the application; false if all exceptions that result from attempts to write audit events are passed up to the application. 默认为 trueThe default is true.

属性

注解

应将对审核日志的写入错误通知给应用程序。Applications should be notified for failures of writing to the audit log. 如果应用程序未设计为处理审核错误,则应使用此属性取消对审核日志的写入错误。If your application is not designed to handle audit failures, you should use this property to suppress failures in writing to the audit log.

适用于