WCF-Xtensions Class Reference for Mono
CanBuildChannelListener<TChannel> Method (SoapTcpTransportBindingElement)






The type of channel the channel listener accepts.
The BindingContext for the listener.
Returns a value that indicates whether the current binding can build a listener for a specified type of channel and context.
Syntax
public override System.bool CanBuildChannelListener<TChannel>( 
   System.ServiceModel.Channels.BindingContext context
)
where TChannel: class, System.ServiceModel.Channels.IChannel
public function CanBuildChannelListener( 
    context: System.ServiceModel.Channels.BindingContext
): System.Boolean; override; 
public override function CanBuildChannelListener( 
   context : System.ServiceModel.Channels.BindingContext
) : System.boolean;
public: System.bool CanBuildChannelListener<TChannel>( 
   System.ServiceModel.Channels.BindingContext* context
) override 
where TChannel: ref class, System.ServiceModel.Channels.IChannel
public:
System.bool CanBuildChannelListenergeneric<typename TChannel>
( 
   System.ServiceModel.Channels.BindingContext^ context
) override 
where TChannel: ref class, System.ServiceModel.Channels.IChannel
'Declaration
 
Public Overrides Function CanBuildChannelListener(Of TChannel As {Class, System.ServiceModel.Channels.IChannel})( _
   ByVal context As System.ServiceModel.Channels.BindingContext _
) As System.Boolean
 
'Usage
 
Dim instance As SoapTcpTransportBindingElement
Dim context As System.ServiceModel.Channels.BindingContext
Dim value As System.Boolean
 
value = instance.CanBuildChannelListener(Of TChannel)(context)

Parameters

context
The BindingContext for the listener.

Type Parameters

TChannel
The type of channel the channel listener accepts.

Return Value

true if the specified channel listener stack can be built on the service; otherwise, false
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

SoapTcpTransportBindingElement Class
SoapTcpTransportBindingElement Members
Base Implementation in CanBuildChannelListener<TChannel>

Send Feedback