ChannelFactory.InitializeEndpoint Method (Binding, EndpointAddress)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Initializes the service endpoint of the channel factory with a specified binding and address.
Namespace: System.ServiceModel
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Protected Sub InitializeEndpoint ( _
binding As Binding, _
address As EndpointAddress _
)
protected void InitializeEndpoint(
Binding binding,
EndpointAddress address
)
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.
Remarks
Use InitializeEndpoint(String, EndpointAddress) if you have a file that contains the configuration for the endpoint.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.