ServiceBusMessagingTransportBindingElement.CanBuildChannelListener<T> Method

Queries if the channel factory can build channel listener 'context'.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)

Syntax

'Declaration
Public Overrides Function CanBuildChannelListener(Of T As {Class, IChannel}) ( _
    context As BindingContext _
) As Boolean
'Usage
Dim instance As ServiceBusMessagingTransportBindingElement
Dim context As BindingContext
Dim returnValue As Boolean

returnValue = instance.CanBuildChannelListener(context)
public override bool CanBuildChannelListener<T>(
    BindingContext context
)
where T : class, IChannel
public:
generic<typename T>
where T : ref class, IChannel
virtual bool CanBuildChannelListener(
    BindingContext^ context
) override
abstract CanBuildChannelListener : 
        context:BindingContext -> bool  when 'T : not struct and IChannel
override CanBuildChannelListener : 
        context:BindingContext -> bool  when 'T : not struct and IChannel
JScript does not support generic types and methods.

Type Parameters

  • T
    Generic type parameter.

Parameters

Return Value

Type: System.Boolean
true if the binding element can build a channel listener for a specific type of channel; otherwise false.

See Also

Reference

ServiceBusMessagingTransportBindingElement Class

Microsoft.ServiceBus.Messaging Namespace