語言

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

例外狀況

context 是 null。

的 TChannel 類型不是 IOutputChannel。

備註

此方法建立通道工廠,用於建立一個通道來處理此綁定的發出訊息。

適用於