CreateFactory Method

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.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected virtual IChannelFactory CreateFactory()

Return Value

Type: System.ServiceModel.Channels.IChannelFactory
An IChannelFactory for the endpoint of the current factory.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft