ChannelFactory.InitializeEndpoint Method (Binding, EndpointAddress)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes the service endpoint of the channel factory with a specified binding and address.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Protected Sub InitializeEndpoint ( _ binding As Binding, _ address As EndpointAddress _ )
Parameters
- binding
- Type: System.ServiceModel.Channels.Binding
The Binding with which to initialize the endpoint for the channel factory.
- address
- Type: System.ServiceModel.EndpointAddress
The EndpointAddress with which to initialize the endpoint for the channel factory.
Use InitializeEndpoint(String, EndpointAddress) if you have a file that contains the configuration for the endpoint.
Show: