Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 | 
|---|---|
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.  | 
|
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