OneWayBindingElement.BuildChannelFactory<TChannel> メソッド

定義

バインディング コンテキストから一方向チャネルを生成するためのチャネル ファクトリを初期化します。

public:
generic <typename TChannel>
 override System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel>(System.ServiceModel.Channels.BindingContext context);
override this.BuildChannelFactory : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Overrides Function BuildChannelFactory(Of TChannel) (context As BindingContext) As IChannelFactory(Of TChannel)

型パラメーター

TChannel

ファクトリがビルドするチャネルの種類。

パラメーター

context
BindingContext

バインド要素のコンテキストを提供する BindingContext

返品

IChannelFactory<TChannel>から初期化IChannel型のcontext

例外

contextnullです。

TChannelの種類がIOutputChannelされていません。

内部バインディング要素は、 IDuplexSessionChannel または IRequestChannelをサポートしていません。

注釈

このメソッドはチャネル ファクトリを作成します。チャネル ファクトリは、このバインディングの送信メッセージを処理するチャネルを作成するために使用されます。

適用対象