IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) メソッド

定義

エンドポイント全体にわたってクライアントの変更または拡張を実装します。

public:
 void ApplyClientBehavior(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::ServiceModel::Dispatcher::ClientRuntime ^ clientRuntime);
public void ApplyClientBehavior (System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime);
abstract member ApplyClientBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.ClientRuntime -> unit
Public Sub ApplyClientBehavior (endpoint As ServiceEndpoint, clientRuntime As ClientRuntime)

パラメーター

endpoint
ServiceEndpoint

カスタマイズ対象のエンドポイント。

clientRuntime
ClientRuntime

カスタマイズ対象のクライアント ランタイム。

注釈

エンドポイントで使用されるすべてのメッセージまたは特定の操作について、クライアント ランタイムを表示または変更したり、クライアント ランタイムにカスタム拡張機能を追加したりするには、ApplyClientBehavior メソッドを実装します。 クライアントのランタイム オブジェクトで実行できるカスタマイズの詳細については、ClientRuntime および ClientOperation を参照してください。

動作をサービス アプリケーションでのみ使用する場合は、ApplyClientBehavior メソッドで NotImplementedException をスローさせることをお勧めします。

既に他の動作によって一部の操作が追加されるか、ランタイムから削除されている可能性があるので、DispatchOperation プロパティにある Operations オブジェクトと同じ数の操作が説明に存在するという保証はありません。

適用対象