英語で読む

次の方法で共有


IContractBehavior.AddBindingParameters メソッド

定義

任意のバインド要素を、コントラクトの動作をサポートするように構成します。

public void AddBindingParameters(System.ServiceModel.Description.ContractDescription contractDescription, System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection bindingParameters);

パラメーター

contractDescription
ContractDescription

変更するコントラクトの説明。

endpoint
ServiceEndpoint

変更するエンドポイント。

bindingParameters
BindingParameterCollection

動作をサポートするためにバインド要素が要求するオブジェクト。

注釈

コントラクトの動作をサポートするために必要な追加のオブジェクトをバインディング要素に提供するには、AddBindingParameters メソッドを実装します。

このメソッドは、指定されたサービス コントラクトを使用するエンドポイントごとに 1 回呼び出されます。

適用対象

製品 バージョン
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0