ClientBase<TChannel> Constructor
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Protected Sub New
protected ClientBase()
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Either there is no default endpoint information in the configuration file, more than one endpoint in the file, or no configuration file. |
Remarks
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.
Version Information
Silverlight
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
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also