Returns a value that indicates whether the current binding can build a listener
for a specified type of channel and context.
public override System.bool CanBuildChannelListener<>(
System.ServiceModel.Channels.BindingContext
)
where TChannel: class, System.ServiceModel.Channels.IChannel
public function CanBuildChannelListener(
: System.ServiceModel.Channels.BindingContext
): System.Boolean; override;
public override function CanBuildChannelListener(
: System.ServiceModel.Channels.BindingContext
) : System.boolean;
public: System.bool CanBuildChannelListener<>(
System.ServiceModel.Channels.BindingContext*
) override
where TChannel: ref class, System.ServiceModel.Channels.IChannel
public:
System.bool CanBuildChannelListenergeneric<typename >
(
System.ServiceModel.Channels.BindingContext^
) override
where TChannel: ref class, System.ServiceModel.Channels.IChannel
'Declaration
Public Overrides Function CanBuildChannelListener(Of As {Class, System.ServiceModel.Channels.IChannel})( _
ByVal As System.ServiceModel.Channels.BindingContext _
) As System.Boolean
'Usage
Dim instance As StreamEnhancerBindingElement
Dim context As System.ServiceModel.Channels.BindingContext
Dim value As System.Boolean
value = instance.CanBuildChannelListener(Of TChannel)(context)
Parameters
- context
- The BindingContext for the channel listener.
Type Parameters
- TChannel
- The type of channel the channel listener accepts.
Return Value
true if the specified channel listener can be built on the service; otherwise, false
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