Share via


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

Schema Hierarchy

<system.serviceModel>
  <behaviors>
    <serviceBehaviors>
      <behavior> of <serviceBehaviors>

Syntax

<system.ServiceModel>
  <behaviors>
    <serviceBehaviors>
       <behavior name="String" />
    </serviceBehaviors>
  </behaviors>
</system.ServiceModel>

Attributes and Elements

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

Attributes

Attribute Description

name

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

<dataContractSerializer>

Contains configuration data for the DataContractSerializer.

<persistenceProvider>

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.

<serviceCredentials>

Specifies the credential to be used in authenticating the service and the client credential validation-related settings.

<serviceDebug>

Specifies debugging and help information features for a Windows Communication Foundation (WCF) service.

<serviceMetadata>

Specifies the publication of service metadata and associated information.

<serviceSecurityAudit>

Specifies settings that enable auditing of security events during service operations.

<serviceThrottling>

Specifies the throttling mechanism of a WCF service.

<serviceTimeouts>

Specifies the timeout for a service.

<workflowRuntime>

Specifies settings for an instance of WorkflowRuntime for hosting workflow-based WCF services.

Parent Elements

Element Description

<serviceBehaviors>

A collection of service behavior elements.


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