Binding.BuildChannelFactory Binding.BuildChannelFactory Binding.BuildChannelFactory Binding.BuildChannelFactory Method

定义

在绑定指定的客户端上生成通道工厂堆栈。Builds the channel factory stack on the client specified by the binding.

重载

BuildChannelFactory<TChannel>(Object[]) BuildChannelFactory<TChannel>(Object[]) BuildChannelFactory<TChannel>(Object[]) BuildChannelFactory<TChannel>(Object[])

在客户端上生成通道工厂堆栈,该通道工厂堆栈创建具有指定类型的通道并满足对象数组所指定的功能。Builds the channel factory stack on the client that creates a specified type of channel and that satisfies the features specified by an object array.

BuildChannelFactory<TChannel>(BindingParameterCollection) BuildChannelFactory<TChannel>(BindingParameterCollection) BuildChannelFactory<TChannel>(BindingParameterCollection) BuildChannelFactory<TChannel>(BindingParameterCollection)

在客户端上生成通道工厂堆栈,此通道工厂堆栈创建具有指定类型的通道并满足绑定参数集合所指定的功能。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.

BuildChannelFactory<TChannel>(Object[]) BuildChannelFactory<TChannel>(Object[]) BuildChannelFactory<TChannel>(Object[]) BuildChannelFactory<TChannel>(Object[])

在客户端上生成通道工厂堆栈,该通道工厂堆栈创建具有指定类型的通道并满足对象数组所指定的功能。Builds the channel factory stack on the client that creates a specified type of channel and that satisfies the features specified by an object array.

public:
generic <typename TChannel>
 System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(... cli::array <System::Object ^> ^ parameters);
public System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel> (params object[] parameters);
member this.BuildChannelFactory : obj[] -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Function BuildChannelFactory(Of TChannel) (ParamArray parameters As Object()) As IChannelFactory(Of TChannel)

类型参数

TChannel

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

参数

parameters
Object[]

为生成的通道工厂指定需求的对象数组。The object array that specifies requirements for the channel factory that is built.

返回

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

异常

缺少传输元素或其顺序紊乱,或架构无效,或未指定消息版本。Transport element is missing or out of order or scheme is invalid or the message version is not specified.

BuildChannelFactory<TChannel>(BindingParameterCollection) BuildChannelFactory<TChannel>(BindingParameterCollection) BuildChannelFactory<TChannel>(BindingParameterCollection) BuildChannelFactory<TChannel>(BindingParameterCollection)

在客户端上生成通道工厂堆栈,此通道工厂堆栈创建具有指定类型的通道并满足绑定参数集合所指定的功能。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>
 virtual System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public virtual System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingParameterCollection parameters);
abstract member BuildChannelFactory : System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelFactory<'Channel>
override this.BuildChannelFactory : System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Overridable 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

BindingParameterCollection,为生成的通道工厂指定要求。The BindingParameterCollection that specifies requirements for the channel factory built.

返回

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

异常

缺少传输元素或其顺序紊乱,或架构无效,或未指定消息版本。Transport element is missing or out of order or scheme is invalid or the message version is not specified.

适用于