IOperationBehavior.AddBindingParameters メソッド
この記事の内容
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
実行時にバインディングにデータを渡して、バインディングがカスタム動作をサポートできるようにするために実装します。
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 メソッドは通常、サポートするチャネルを正しく作成できるように、カスタム バインド要素に操作に関する情報を渡すために実装します。 変更の必要がない場合は、値を返しません。
適用対象
製品 | バージョン |
---|---|
.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 |