แก้ไข

แชร์ผ่าน


MsmqIntegrationBindingElement.CanBuildChannelListener<TChannel> Method

Definition

Returns a value that indicates whether you can build a channel listener with the context provided.

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel override bool CanBuildChannelListener(System::ServiceModel::Channels::BindingContext ^ context);
public override bool CanBuildChannelListener<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
override this.CanBuildChannelListener : System.ServiceModel.Channels.BindingContext -> bool (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overrides Function CanBuildChannelListener(Of TChannel As {Class, IChannel}) (context As BindingContext) As Boolean

Type Parameters

TChannel

The type of channel.

Parameters

context
BindingContext

The BindingContext with which to build the channel listener.

Returns

true if you can build a channel listener with the context provided; otherwise, false.

This method returns true only if TChannel is IInputChannel.

Applies to