ByteStreamMessageEncodingBindingElement.CanBuildChannelListener<TChannel> 方法

定义

返回一个值,该值指示当前绑定是否可以为指定的通道类型和上下文生成侦听器。

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

类型参数

TChannel

通道侦听器接受的通道类型。

参数

context
BindingContext

侦听器的绑定上下文。

返回

如果可以在服务上生成指定的通道侦听器堆栈,则为 true;否则为 false

适用于