<behavior> of <serviceBehaviors>
The behavior element contains a collection of settings for the behavior of a service. Each behavior is indexed by its name. Services can link to each behavior through this name using the behaviorConfigurationattribute of the <endpoint> element element. This allows endpoints to share common behavior configurations without redefining the settings. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see Simplified Configuration and Simplified Configuration for WCF Services.
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
A unique string that contains the configuration name of the behavior. This value is a user-defined string that must be unique, since it acts as the identification string for the element. Starting with .NET Framework 4, bindings and behaviors are not required to have a name. For more information about default configuration and nameless bindings and behaviors, see Simplified Configuration and Simplified Configuration for WCF Services.
Contains configuration data for the DataContractSerializer.
Specifies the type of the persistence provider implementation to use, as well as the time-out to use for persistence operations.
Provides run-time access to the routing service to allow dynamic modification of the routing configuration.
Provides a workflow configuration element that establishes at the service level the validity of a transmission, message, or originator..
Specifies settings that authorize access to service operations.
Specifies the credential to be used in authenticating the service and the client credential validation-related settings.
Specifies debugging and help information features for a Windows Communication Foundation (WCF) service.
Specifies the discoverability of service endpoints.
Specifies the publication of service metadata and associated information.
Specifies settings that enable auditing of security events during service operations.
Specifies the throttling mechanism of a WCF service.
Specifies the timeout for a service.
Specifies settings for an instance of WorkflowRuntime for hosting workflow-based WCF services.
Enables the retrieval of metadata address information from the request message headers.
A collection of service behavior elements.