IOperationBehavior.AddBindingParameters メソッド

定義

実行時にバインディングにデータを渡して、バインディングがカスタム動作をサポートできるようにするために実装します。

public:
 void AddBindingParameters(System::ServiceModel::Description::OperationDescription ^ operationDescription, System::ServiceModel::Channels::BindingParameterCollection ^ bindingParameters);
public void AddBindingParameters (System.ServiceModel.Description.OperationDescription operationDescription, System.ServiceModel.Channels.BindingParameterCollection bindingParameters);
abstract member AddBindingParameters : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Channels.BindingParameterCollection -> unit
Public Sub AddBindingParameters (operationDescription As OperationDescription, bindingParameters As BindingParameterCollection)

パラメーター

operationDescription
OperationDescription

検査されている操作。 検査でのみ使用します。 操作の説明が変更される場合、結果は未定義です。

bindingParameters
BindingParameterCollection

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

注釈

操作の動作をサポートするために必要な追加のオブジェクトをバインディング要素に提供するには、AddBindingParameters メソッドを実装します。 これによってバインディング パラメーターが追加されると、チャネル リスナーまたはチャネル ファクトリが作成された場合に、バインディングがこれらのオブジェクトを検索して処理できます。 AddBindingParameters メソッドは通常、サポートするチャネルを正しく作成できるように、カスタム バインド要素に操作に関する情報を渡すために実装します。 変更の必要がない場合は、値を返しません。

適用対象