ClientBase(TChannel) Constructor

ClientBase(Of TChannel) Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the ClientBase(Of TChannel) class using the default target endpoint from the application configuration file.

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

'Declaration
Protected Sub New

ExceptionCondition
InvalidOperationException

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 Windows Phone 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft