ChannelFactory.CreateFactory 方法

定义

为工厂的当前终结点生成通道工厂。

protected:
 virtual System::ServiceModel::Channels::IChannelFactory ^ CreateFactory();
protected virtual System.ServiceModel.Channels.IChannelFactory CreateFactory ();
abstract member CreateFactory : unit -> System.ServiceModel.Channels.IChannelFactory
override this.CreateFactory : unit -> System.ServiceModel.Channels.IChannelFactory
Protected Overridable Function CreateFactory () As IChannelFactory

返回

IChannelFactory

当前工厂的终结点的 IChannelFactory

例外

工厂通道所连接的服务终结点为 null,或者终结点的绑定为 null 或是缺少具有指定配置名称的元素。

适用于