Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ServiceSecurityAuditBehavior Class

 

Specifies the audit behavior of security events. In general, the security events consist of authentication events such as transport, message or negotiate authentication and authorization event. For more information, see ServiceAuthorizationManager.

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

System::Object
  System.ServiceModel.Description::ServiceSecurityAuditBehavior

public ref class ServiceSecurityAuditBehavior sealed : IServiceBehavior

NameDescription
System_CAPS_pubmethodServiceSecurityAuditBehavior()

Initializes a new instance of the ServiceSecurityAuditBehavior class.

NameDescription
System_CAPS_pubpropertyAuditLogLocation

Gets or sets the location where secure-related event logs are written.

System_CAPS_pubpropertyMessageAuthenticationAuditLevel

Gets or sets the type of authentication events to audit at the message level.

System_CAPS_pubpropertyServiceAuthorizationAuditLevel

Gets or sets the type of authorization events to audit at the service level.

System_CAPS_pubpropertySuppressAuditFailure

Gets or sets a value that indicates whether failure to audit affects the application.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceBehavior::AddBindingParameters(ServiceDescription^, ServiceHostBase^, Collection<ServiceEndpoint^>^, BindingParameterCollection^)

Passes custom data to binding elements to support the contract implementation.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceBehavior::ApplyDispatchBehavior(ServiceDescription^, ServiceHostBase^)

Provides the ability to change run-time property values or insert custom extension objects such as error handlers, message or parameter interceptors, security extensions, and other custom extension objects.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceBehavior::Validate(ServiceDescription^, ServiceHostBase^)

Not implemented.

The ServiceSecurityAuditBehavior class is used to audit Windows Communication Foundation (WCF) authentication events. When auditing is enabled, either successful or failed authentication attempts (or both) can be audited. The events are written to one of three event logs: application, security, or the default log for the operating system version. The event logs can all be viewed using the Windows Event viewer.

Use this class to specify which event log is written to, as well as kinds of authentication events to write. You can also specify whether to suppress audit failures by setting the SuppressAuditFailure property to false (the default is true).

For more information about auditing security events for WCF applications, see Auditing Security Events.

To specify audit behavior in configuration, use the <serviceSecurityAudit>.

The following code creates an instance of the ServiceHost class and adds a new ServiceSecurityAuditBehavior to its collection of behaviors.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2017 Microsoft