DevForce Help Reference
BuildChannelFactory<TChannel> Method


The type of channel the factory builds.
The System.ServiceModel.Channels.BindingContext that provides context for the binding element.
Initializes a channel factory for producing channels of a specified type from the binding context.
Syntax
'Declaration
 
Public Overrides NotOverridable Function BuildChannelFactory(Of TChannel)( _
   ByVal context As BindingContext _
) As IChannelFactory(Of TChannel)
'Usage
 
Dim instance As GZipMessageEncodingBindingElement
Dim context As BindingContext
Dim value As IChannelFactory(Of TChannel)
 
value = instance.BuildChannelFactory(Of TChannel)(context)
public override IChannelFactory<TChannel> BuildChannelFactory<TChannel>( 
   BindingContext context
)

Parameters

context
The System.ServiceModel.Channels.BindingContext that provides context for the binding element.

Type Parameters

TChannel
The type of channel the factory builds.

Return Value

The IChannelFactory of type TChannel initialized from the context.
Exceptions
ExceptionDescription
System.ArgumentNullExceptioncontext is null.
Requirements

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

See Also

Reference

GZipMessageEncodingBindingElement Class
GZipMessageEncodingBindingElement Members

Send Feedback