ChannelFactory<TChannel> Constructor (Binding, EndpointAddress)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the ChannelFactory<TChannel> class with a specified endpoint address and binding configuration.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- binding
- Type: System.ServiceModel.Channels.Binding
The Binding used to configure the channels created by the factory.
- remoteAddress
- Type: System.ServiceModel.EndpointAddress
The destination EndpointAddress for channels created by the factory.
| Exception | Condition |
|---|---|
| ArgumentNullException | The binding is null. |
Show: