Share via


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

チャネル リスナーが受け入れるチャネルの種類。 既定では、IReplyChannelIReplySessionChannel、および IDuplexSessionChannel のみ許可されます。

パラメーター

context
BindingContext

リスナーの BindingContext

戻り値

指定したチャネル リスナー スタックをサービスで作成できる場合は true、それ以外の場合は false

適用対象