Export (0) Print
Expand All

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)

protected void InitializeEndpoint(
	ServiceEndpoint endpoint
)

Parameters

endpoint
Type: System.ServiceModel.Description.ServiceEndpoint

The ServiceEndpoint to initialize the channel factory with.

ExceptionCondition
ArgumentNullException

endpoint is null.

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