共用方式為


<behaviors>

This element defines two child collections named endpointBehaviors and serviceBehaviors. Each collection defines behavior elements consumed by endpoints and services respectively. Each behavior element is identified by its unique name attribute.

<system.serviceModel>

                                    
                                    <behaviors>
                                
                                    
                                       <serviceBehaviors>
                                
                                    
                                       </serviceBehaviors>
                                
                                    
                                       <endpointBehaviors>
                                
                                    
                                       </endpointBehaviors>
                                
                                    
                                    </behaviors>
                                

Attributes and Elements

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

Attributes

None

Child Elements

Element Description

<endpointBehaviors>

This configuration section represents all the behaviors defined for a specific endpoint.

<serviceBehaviors>

This configuration section represents all the behaviors defined for a specific service.

Parent Elements


Element Description

<system.serviceModel>

The root element of all Windows Communication Foundation (WCF) configuration elements.

Footer image

Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.