Creates a channel factory that can be used to create a channel.
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<>(
System.ServiceModel.Channels.BindingContext
)
public function BuildChannelFactory(
: System.ServiceModel.Channels.BindingContext
): System.ServiceModel.Channels.IChannelFactory; override;
public override function BuildChannelFactory(
: System.ServiceModel.Channels.BindingContext
) : System.ServiceModel.Channels.IChannelFactory;
public: System.ServiceModel.Channels.IChannelFactory<TChannel*>* BuildChannelFactory<>(
System.ServiceModel.Channels.BindingContext*
) override
public:
System.ServiceModel.Channels.IChannelFactory<TChannel^>^ BuildChannelFactorygeneric<typename >
(
System.ServiceModel.Channels.BindingContext^
) override
'Declaration
Public Overrides Function BuildChannelFactory(Of )( _
ByVal As System.ServiceModel.Channels.BindingContext _
) As System.ServiceModel.Channels.IChannelFactory(Of TChannel)
'Usage
Dim instance As ContentNegotiationBindingElement
Dim context As System.ServiceModel.Channels.BindingContext
Dim value As System.ServiceModel.Channels.IChannelFactory(Of TChannel)
value = instance.BuildChannelFactory(Of TChannel)(context)
Parameters
- context
-
BindingContext members that describe bindings, behaviors, contracts and other information required to create
the channel factory.
Type Parameters
- TChannel
-
Type of channel factory.
Return Value
A channel factory of the specified type.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2