OneWayBindingElement.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,其提供繫結項目的內容。

傳回

IChannelFactory<TChannel> 型別的 IChannel,初始化自 context

例外狀況

contextnull

TChannel 的型別不是 IOutputChannel

備註

這個方法會建立通道處理站,可用來建立處理此繫結之傳出訊息的通道。

適用於