ChannelFactory.CreateFactory 方法

定义

为工厂的当前终结点生成通道工厂。Builds the channel factory for the current endpoint of the factory.

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

当前工厂的终结点的 IChannelFactoryAn IChannelFactory for the endpoint of the current factory.

例外

工厂通道所连接的服务终结点为 null,或者终结点的绑定为 null 或是缺少具有指定配置名称的元素。The endpoint of the service that the factory channels connect to is null or the endpoint's binding is null or is missing the element with the configuration name specified.

适用于