SecurityBindingElement::BuildChannelFactoryCore<TChannel> Method (BindingContext^)
.NET Framework (current version)
When implemented, creates a channel factory of a specified type.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
protected: generic<typename TChannel> virtual IChannelFactory<TChannel>^ BuildChannelFactoryCore( BindingContext^ context ) abstract
Parameters
- context
-
Type:
System.ServiceModel.Channels::BindingContext^
The BindingContext.
Return Value
Type: System.ServiceModel.Channels::IChannelFactory<TChannel>^A channel factory of a specified type.
Type Parameters
- TChannel
The type of channel factory.
| Exception | Condition |
|---|---|
| ArgumentNullException | context is null. |
| ArgumentException | A channel of type TChannel is not supported. |
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.
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Show: