Share via


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

バインド要素のコンテキストを提供する BindingContext

戻り値

true 型の IChannelListener<TChannel> をバインディング要素によって作成できる場合は TChannel。それ以外の場合は false

適用対象