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

要检查的通道类型。

参数

context
BindingContext

通道的 BindingContext

返回

Boolean

如果可以生成通道工厂,则为 true;否则为 false

例外

contextnull

适用于