BindingContext.BuildInnerChannelFactory<TChannel> Methode

Definition

Erstellt die innere Kanalfactory für Kanäle eines angegebenen Typs unter der aktuellen Kanalfactory.Builds the inner channel factory for channels of a specified type below the current channel factory.

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)

Typparameter

TChannel

Der IChannel-Objekttyp, der von der inneren Kanalfactory erzeugt wird.The type of IChannel object the inner channel factory produces.

Gibt zurück

Die IChannelFactory<TChannel> vom Typ IChannel, die die innere Kanalfactory der aktuellen Kanalfactory darstellt.The IChannelFactory<TChannel> of type IChannel that represents the inner channel factory of the current channel factory.

Beispiele

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

Gilt für: