共用方式為


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)()

適用於