SslStreamSecurityBindingElement.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

通道工厂的类型。

参数

返回

IChannelFactory<TChannel>

表示类型 TChannel 的通道工厂的 IChannelFactory 对象。

例外

contextnull

注解

此方法可创建通道工厂,该通道工厂用于创建将为此绑定处理传出消息的通道。

适用于