Share via


ContextBindingElement.CanBuildChannelFactory<TChannel> メソッド

定義

指定した種類のチャネルとコンテキストに対するファクトリを現在のバインド要素が作成できるかどうかを示す値を返します。

public:
generic <typename TChannel>
 override bool CanBuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override bool CanBuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingContext context);
override this.CanBuildChannelFactory : System.ServiceModel.Channels.BindingContext -> bool
Public Overrides Function CanBuildChannelFactory(Of TChannel) (context As BindingContext) As Boolean

型パラメーター

TChannel

チャネル ファクトリが作成するチャネルの種類。 既定では、IRequestChannelIRequestSessionChannel、および IDuplexSessionChannel のみ許可されます。

パラメーター

context
BindingContext

ファクトリの BindingContext

戻り値

指定したチャネル ファクトリ スタックをクライアントで作成できる場合は true、それ以外の場合は false

適用対象