BasicHttpBinding.BuildChannelFactory(BindingParameterCollection) BasicHttpBinding.BuildChannelFactory(BindingParameterCollection) BasicHttpBinding.BuildChannelFactory(BindingParameterCollection) BasicHttpBinding.BuildChannelFactory(BindingParameterCollection) Method

定义

在客户端上生成通道工厂堆栈,此通道工厂堆栈创建具有指定类型的通道并满足绑定参数集合所指定的功能。Builds the channel factory stack on the client that creates a specified type of channel and that satisfies the features specified by a collection of binding parameters.

public:
generic <typename TChannel>
 override System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingParameterCollection parameters);
override this.BuildChannelFactory : System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Overrides Function BuildChannelFactory(Of TChannel) (parameters As BindingParameterCollection) As IChannelFactory(Of TChannel)

类型参数

TChannel

通道工厂生成的通道类型。The type of channel the channel factory produces.

参数

parameters
BindingParameterCollection BindingParameterCollection BindingParameterCollection BindingParameterCollection

指定生成的通道工厂的要求。Specifies the requirements for the channel factory built.

返回

一个类型为 IChannelFactory<TChannel>TChannel,它满足集合所指定的功能。An IChannelFactory<TChannel> of type TChannel that satisfies the features specified by the collection.

适用于