ChannelFactory.InitializeEndpoint Method (ServiceEndpoint)

 

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

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

member InitializeEndpoint : 
        endpoint:ServiceEndpoint -> unit

Parameters

endpoint
Type: System.ServiceModel.Description.ServiceEndpoint

The ServiceEndpoint to initialize the channel factory with.

Exception Condition
ArgumentNullException

endpoint is null.

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Return to top
Show: