Binding.BuildChannelFactory 方法

定義

在繫結指定的用戶端上建置通道處理站堆疊。Builds the channel factory stack on the client specified by the binding.

多載

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)

在用戶端上建置通道處理站堆疊,此堆疊會建立指定的通道型別,並滿足繫結參數集合所指定的功能。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[])

在用戶端上建置通道處理站堆疊,此堆疊會建立指定的通道型別,並滿足物件陣列所指定的功能。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>

屬於 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)

在用戶端上建置通道處理站堆疊,此堆疊會建立指定的通道型別,並滿足繫結參數集合所指定的功能。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

指定所建置之通道處理站需求的 BindingParameterCollectionThe BindingParameterCollection that specifies requirements for the channel factory built.

傳回

IChannelFactory<TChannel>

屬於 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.

適用於