BindingContext.CanBuildInnerChannelListener<TChannel> メソッド

定義

指定した型のチャネルをリッスンするための内部チャネル リスナーを作成できるかどうかを示す値を返します。

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel bool CanBuildInnerChannelListener();
public bool CanBuildInnerChannelListener<TChannel> () where TChannel : class, System.ServiceModel.Channels.IChannel;
member this.CanBuildInnerChannelListener : unit -> bool (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Function CanBuildInnerChannelListener(Of TChannel As {Class, IChannel}) () As Boolean

型パラメーター

TChannel

内部チャネル リスナーがリッスンする IChannel オブジェクトの型。

戻り値

指定された true をリッスンするために内部チャネル リスナーを作成できる場合は TChannel。それ以外の場合は false

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
context.CanBuildInnerChannelListener<IDuplexChannel>();
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
context.CanBuildInnerChannelListener(Of IDuplexChannel)()

適用対象