This documentation is archived and is not being maintained.

<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.

       <behavior name="String" />

The following sections describe attributes, child elements, and parent elements.


Attribute Description


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.

Child Elements

Element Description


Contains configuration data for the DataContractSerializer.


Secifies the type of the persistence provider implementation to use, as well as the time-out to use for persistence operations.

<serviceAuthorization> element

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 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.

Parent Elements

Element Description


A collection of service behavior elements.

© 2007 Microsoft Corporation. All rights reserved.
Last Published: 2010-01-05