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.
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.
| Exception | Condition |
|---|---|
| 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.