ChannelFactory.CreateFactory Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Builds the channel factory for the current endpoint of the factory.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Return Value
Type: System.ServiceModel.Channels.IChannelFactoryAn IChannelFactory for the endpoint of the current factory.
| Exception | Condition |
|---|---|
| InvalidOperationException | 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. |
Show: