ClientBase(TChannel) Constructor (String)

ClientBase(Of TChannel) Constructor (String)

[ 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 configuration information specified in the application configuration file by endpointConfigurationName.

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

'Declaration
Protected Sub New ( _
	endpointConfigurationName As String _
)

Parameters

endpointConfigurationName
Type: System.String
The name of the endpoint in the application configuration file.

ExceptionCondition
ArgumentNullException

The specified endpoint information is Nothing.

InvalidOperationException

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

Use this constructor when there is more than one target endpoint in the application configuration file. This value is the name attribute of the client Endpoint element.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft