편집

다음을 통해 공유


ServiceSecurityAuditElement.SuppressAuditFailure Property

Definition

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=true)]
public bool SuppressAuditFailure { get; set; }
[<System.Configuration.ConfigurationProperty("suppressAuditFailure", DefaultValue=true)>]
member this.SuppressAuditFailure : bool with get, set
Public Property SuppressAuditFailure As Boolean

Property Value

true 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. The default is true.

Attributes

Remarks

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.

Applies to