語言

HttpsTransportBindingElement.BuildChannelFactory<TChannel> 方法

定義

建立指定類型的通道工廠,可用來建立通道。

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

類型參數

TChannel

頻道類型。

參數

context
BindingContext

BindingContext 成員描述綁定、行為、合約及其他創建通道工廠所需的資訊。

傳回

一個指定類型的通道工廠,根據傳輸綁定元素中設定的值進行配置。

例外狀況

context 不可以是 null。

備註

回傳一個通道工廠,該工廠是根據傳輸綁定元素中設定的值來設定的。

適用於