你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NetMessagingTransportBindingElement.BuildChannelFactory<TChannel> 方法

定义

生成通道工厂。

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

绑定上下文。

返回

IChannelFactory<TChannel>

由通道工厂实现的接口。

例外

当 TChannel 不是受支持的通道类型时引发

当上下文为 null 时引发。

适用于