ByteStreamMessageEncodingBindingElement.CanBuildChannelFactory<TChannel>(BindingContext) 方法
定义
返回一个值,该值指示当前绑定是否可以为指定的通道类型和上下文生成工厂。Returns a value that indicates whether the current binding can build a factory for a specified type of channel and context.
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
通道工厂生成的通道类型。The type of channel the channel factory produces.
参数
- context
- BindingContext
通道的绑定上下文。The binding context for the channel.
返回
如果可以在服务上生成指定的通道工厂堆栈,则为 true;否则为 false。true if the specified channel factory stack can be built on the service; otherwise, false.