PeerTransportBindingElement.CanBuildChannelFactory<TChannel>(BindingContext) 方法

定义

确定是否可生成指定类型的通道工厂。Determines whether a channel factory of the specified type can be built.

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,指定要生成的通道类型。IChannel that specifies the type of the channels to produce.

参数

context
BindingContext

BindingContext,指定通道工厂的绑定上下文。BindingContext that specifies the binding context for the channel factory.

返回

Boolean

如果此绑定元素可以生成指定类型的通道工厂,则为 true;否则为 falsetrue if this binding element can produce a channel factory of the specified type; false if it cannot.

适用于