語言

HttpTransportBindingElement.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。

一項無效的論點被通過。

備註

此方法可用於根據傳輸綁定元件的配置,建立通道工廠以傳送訊息。

適用於