EndpointDiscoveryElement クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
エンドポイントの検出機能を制御する構成要素。
public ref class EndpointDiscoveryElement sealed : System::ServiceModel::Configuration::BehaviorExtensionElement
public sealed class EndpointDiscoveryElement : System.ServiceModel.Configuration.BehaviorExtensionElement
type EndpointDiscoveryElement = class
inherit BehaviorExtensionElement
Public NotInheritable Class EndpointDiscoveryElement
Inherits BehaviorExtensionElement
- 継承
-
EndpointDiscoveryElement
- 継承
-
EndpointDiscoveryElement
注釈
エンドポイントの動作構成に追加すると、 EndpointDiscoveryElement 要素を使用して、エンドポイントの検出機能を有効または無効にすることができます。 さらに、検出操作中にサービス エンドポイントをフィルター処理するために使用できるカスタム スコープ URI を指定できます。 また、標準の検出可能なメタデータと共に公開されるカスタム XML メタデータを指定することもできます。
Note
EndpointDiscoveryElementは、検出可能性のサービス レベル制御を提供するServiceDiscoveryElementに依存します。 つまり、EndpointDiscoveryElement要素が存在しない場合、ServiceDiscoveryElementとその設定は無視されます。
次の例は、 EndpointDiscoveryElement 要素を使用し、2 つのスコープ要素を追加する方法を示しています。
<configuration>
<system.serviceModel>
<services>
<service name="Microsoft.Samples.Discovery.CalculatorService"
behaviorConfiguration="calculatorServiceBehavior">
<endpoint address=""
binding="wsHttpBinding" contract="Microsoft.Samples.Discovery.ICalculatorService"
behaviorConfiguration="ep1Behavior" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="calculatorServiceBehavior">
<serviceDiscovery />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="ep1Behavior">
<endpointDiscovery enabled="true">
<scopes>
<add scope="http://www.example.org/engineering/calculator"/>
<add scope="ldap:///ou=engineering,o=exampleorg,c=us"/>
</scopes>
</endpointDiscovery>
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
コンストラクター
| 名前 | 説明 |
|---|---|
| EndpointDiscoveryElement() |
EndpointDiscoveryElement クラスの新しいインスタンスを作成します。 |