WindowsStreamSecurityBindingElement.BuildChannelFactory<TChannel> Method (BindingContext)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public override IChannelFactory<TChannel> BuildChannelFactory<TChannel>(
	BindingContext context


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<TChannel>

Returns a channel factory of the specified type. This method adds this class instance to the BindingParameters and delegates to the build method BuildInnerChannelFactory<TChannel>.

Type Parameters


Type of channel factory.

Exception Condition

context cannot be null.

This method creates a channel factory, which is used to create a channel that processes outgoing messages for this binding.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top