BindingContext.BuildInnerChannelFactory<TChannel> メソッド

定義

現在のチャネル ファクトリの下に、指定した種類のチャネルの内部チャネル ファクトリをビルドします。

public:
generic <typename TChannel>
 System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildInnerChannelFactory();
public System.ServiceModel.Channels.IChannelFactory<TChannel> BuildInnerChannelFactory<TChannel>();
member this.BuildInnerChannelFactory : unit -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Function BuildInnerChannelFactory(Of TChannel) () As IChannelFactory(Of TChannel)

型パラメーター

TChannel

内部チャネル ファクトリが生成 IChannel オブジェクトの型。

返品

現在のチャネル ファクトリの内部チャネル ファクトリを表すIChannelFactory<TChannel>型のIChannel

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
context.BuildInnerChannelFactory<IDuplexChannel>();
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
context.BuildInnerChannelFactory(Of IDuplexChannel)()

適用対象