BuildChannelFactoryCore(TChannel) Method

SecurityBindingElement.BuildChannelFactoryCore(Of TChannel) Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

When implemented in a derived class, creates a channel factory of a specified type.

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

'Declaration
Protected MustOverride Function BuildChannelFactoryCore(Of TChannel) ( _
	context As BindingContext _
) As IChannelFactory(Of TChannel)

Type Parameters

TChannel

Type of channel factory.

Parameters

context
Type: System.ServiceModel.Channels.BindingContext
The BindingContext for the channel factory.

Return Value

Type: System.ServiceModel.Channels.IChannelFactory(Of TChannel)
An IChannelFactory that creates channels of type TChannel.

ExceptionCondition
ArgumentNullException

context is Nothing.

ArgumentException

A channel of type TChannel is not supported.

BuildChannelFactory(Of TChannel), which does error checking, calls this method. When this method is implemented in a derived class, it creates a channel factory, which is used to create a channel that processes outgoing messages for this binding.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft