Builds the channel factory stack on the client that creates a specified type of
channel for a specified context.
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 SoapTcpTransportBindingElement
Dim context As System.ServiceModel.Channels.BindingContext
Dim value As System.ServiceModel.Channels.IChannelFactory(Of TChannel)
value = instance.BuildChannelFactory(Of TChannel)(context)
Parameters
- context
- The BindingContext for the channel.
Type Parameters
- TChannel
- The type of channel the channel factory produces.
Return Value
An IChannelFactory of type TChannel for the specified context.
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