ClientBase<TChannel> Constructor

Initializes a new instance of the ClientBase<TChannel> class using the default target endpoint from the application configuration file.

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

protected ClientBase()


Either there is no default endpoint information in the configuration file, more than one endpoint in the file, or no configuration file.

Use this constructor to create a Silverlight client object to invoke a service. This constructor uses the generic type parameter as the target contract and gets binding and address information from the application configuration file.


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

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions