Share via


CompositeDuplexBindingElement.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

リスナーが受け入れる IChannel

パラメーター

context
BindingContext

チャネル リスナーの作成に必要なコンテキストを提供する BindingContext

戻り値

指定した種類のチャネルを受け入れるために必要なコンテキスト用にチャネル リスナーを作成できる場合は true。それ以外の場合は false

例外

contextnull です。

注釈

trueと 内部バインディングもビルドIInputChannelできる場合IInputChannel == TChannelは 。それ以外の場合falseは 。

適用対象