次の方法で共有


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

戻り値

Boolean

チャネル リスナーを作成できる場合は true。それ以外の場合は false

例外

contextnullです。

注釈

チャネル リスナーを作成する前にこのメソッドを呼び出す必要があります。

TChannelIDuplexSessionChannel の場合は、このメソッドはバッファー モード時にのみ true を返します。 TChannelIReplyChannel の場合は、このメソッドはストリーミング モード時にのみ true を返します。

適用対象