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 をサポートしません。

注釈

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

適用対象