DiscoveryClientBindingElement.CanBuildChannelListener<TChannel> メソッド

定義

チャネル リスナーの作成は、探索クライアント チャネルによってサポートされていないため、このメソッドは常に false を返します。 指定した種類のチャネルに対するリスナーをバインディング要素が作成できるかどうかを示す値を返すために、拡張されている場合もあります。

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

バインド コンテキスト。

戻り値

指定された種類の IChannelListener<TChannel> をバインディング要素でビルトできる場合は true。それ以外の場合は false

適用対象