共用方式為


<behaviors>

這個項目會定義兩個名稱為 endpointBehaviorsserviceBehaviors 的子集合。每個集合會定義分別由端點和服務取用的行為項目。每個行為項目都由其唯一的 name 屬性所識別。

<<system.serviceModel>>

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

屬性和項目

屬性

子項目

項目 描述

<endpointBehaviors>

這個組態區段表示為特定端點定義的所有行為。

<serviceBehaviors>

這個組態區段表示為特定服務定義的所有行為。

父項目

項目 描述

<<system.serviceModel>>

所有 Windows Communication Foundation (WCF) 組態項目的根項目。

請參閱

參考

BehaviorsSection
EndpointBehaviorElementCollection
EndpointBehaviorElement
ServiceBehaviorElementCollection
ServiceBehaviorElement

其他資源

Configuring and Extending the Runtime with Behaviors
Configuring Client Behaviors
Specifying Client Run-Time Behavior
Specifying Service Run-Time Behavior
Security Behaviors in WCF