DevForce Help Reference
CanBuildChannelListener<TChannel> Method


The type of channel the listener accepts.
The System.ServiceModel.Channels.BindingContext that provides context for the binding element.
Returns a value that indicates whether the binding element can build a listener for a specific type of channel.
Syntax
'Declaration
 
Public Overrides NotOverridable Function CanBuildChannelListener(Of TChannel As {Class, IChannel})( _
   ByVal context As BindingContext _
) As Boolean
'Usage
 
Dim instance As GZipMessageEncodingBindingElement
Dim context As BindingContext
Dim value As Boolean
 
value = instance.CanBuildChannelListener(Of TChannel)(context)
public override bool CanBuildChannelListener<TChannel>( 
   BindingContext context
)
where TChannel: class, IChannel

Parameters

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

Type Parameters

TChannel
The type of channel the listener accepts.

Return Value

true if the IChannelListener of type System.ServiceModel.Channels.IChannel can be built by the binding element; otherwise, false.
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