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

IChannel,指定要生成的通道类型。

参数

context
BindingContext

BindingContext,指定通道工厂的绑定上下文。

返回

如果此绑定元素可以生成指定类型的通道工厂,则为 true;否则为 false

适用于