BindingContext.BuildInnerChannelFactory<TChannel> Methode

Definitie

Hiermee wordt de binnenste kanaalfactory gebouwd voor kanalen van een opgegeven type onder de huidige kanaalfactory.

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)

Type parameters

TChannel

Het type IChannel object dat de binnenste kanaalfactory produceert.

Retouren

Het IChannelFactory<TChannel> type IChannel dat de binnenste kanaalfactory van de huidige kanaalfactory vertegenwoordigt.

Voorbeelden

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

Van toepassing op