次の方法で共有


<behaviors>

この要素は、endpointBehaviorsserviceBehaviors という 2 つの子コレクションを定義します。各コレクションは、エンドポイントとサービスによって使用されるそれぞれの動作要素を定義します。各動作要素は、その一意の 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