ServiceSecurityAuditElement.SuppressAuditFailure Property

 

Gets or sets a Boolean value that specifies the behavior for suppressing failures of writing to the audit log.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

[ConfigurationPropertyAttribute("suppressAuditFailure", DefaultValue = true)]
public bool SuppressAuditFailure { get; set; }

Property Value

Type: System.Boolean

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.

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.

.NET Framework
Available since 3.0
Return to top
Show: