Partager via


SecurityBindingElement.BuildChannelFactoryCore<TChannel> Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Protected MustOverride Function BuildChannelFactoryCore(Of TChannel) ( _
    context As BindingContext _
) As IChannelFactory(Of TChannel)
protected abstract IChannelFactory<TChannel> BuildChannelFactoryCore<TChannel>(
    BindingContext context
)

Type Parameters

  • TChannel
    Type of channel factory.

Parameters

Return Value

Type: System.ServiceModel.Channels.IChannelFactory<TChannel>
An IChannelFactory that creates channels of type TChannel.

Exceptions

Exception Condition
ArgumentNullException

context is nulla null reference (Nothing in Visual Basic).

ArgumentException

A channel of type TChannel is not supported.

Remarks

BuildChannelFactory<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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.