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
类型参数
参数
- context
- BindingContext
BindingContext,指定通道工厂的绑定上下文。BindingContext that specifies the binding context for the channel factory.
返回
如果此绑定元素可以生成指定类型的通道工厂,则为 true;否则为 false。true if this binding element can produce a channel factory of the specified type; false if it cannot.