Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ClientBase(TChannel) Constructor (String, EndpointAddress)

ClientBase<TChannel> Constructor (String, EndpointAddress)

Initializes a new instance of the ClientBase<TChannel> class using the specified target address and endpoint information.

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

protected ClientBase(
	string endpointConfigurationName,
	EndpointAddress remoteAddress


Type: System.String

The name of the endpoint in the application configuration file.

Type: System.ServiceModel.EndpointAddress

The address of the service.


The endpoint is null.


The remote address is null.


The endpoint cannot be found or the endpoint contract is not valid.

Use this constructor to determine the target endpoint information from the name of the endpoint in an application configuration file (The target value is located by finding the name attribute of the client <endpoint> of <client> element) and the specified address.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft