Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InitializeEndpoint Method (ServiceEndpoint)

ChannelFactory.InitializeEndpoint Method (ServiceEndpoint)

Initializes the service endpoint of the channel factory with a specified endpoint.

Namespace:  System.ServiceModel
Assemblies:   System.ServiceModel (in System.ServiceModel.dll)
  System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)

'Declaration
Protected Sub InitializeEndpoint ( _
	endpoint As ServiceEndpoint _
)

Parameters

endpoint
Type: System.ServiceModel.Description.ServiceEndpoint

The ServiceEndpoint to initialize the channel factory with.

ExceptionCondition
ArgumentNullException

endpoint is Nothing.

Use InitializeEndpoint(Binding, EndpointAddress) if you have just the binding. Use InitializeEndpoint(String, EndpointAddress) if you have the configuration.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft