Export (0) Print
Expand All

HttpTransportBindingElement.BuildChannelFactory(Of TChannel) Method

Creates a channel factory that can be used to create a channel.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Public Overrides Function BuildChannelFactory(Of TChannel) ( _
	context As BindingContext _
) As IChannelFactory(Of TChannel)

Type Parameters


The type of channel factory.


Type: System.ServiceModel.Channels.BindingContext

BindingContext members that describe bindings, behaviors, contracts and other information required to create the channel factory.

Return Value

Type: System.ServiceModel.Channels.IChannelFactory(Of TChannel)
A channel factory of the specified type.


context cannot be Nothing.


An invalid argument was passed.

This method can be used to get a channel factory for sending messages based on the configuration of the transport binding element.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
© 2015 Microsoft