ChannelFactory.CreateFactory 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为工厂的当前终结点生成通道工厂。
protected:
virtual System::ServiceModel::Channels::IChannelFactory ^ CreateFactory();
C#
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。
工厂通道所连接的服务终结点为 null
,或者终结点的绑定为 null
或是缺少具有指定配置名称的元素。
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
UWP | 10.0 |