ClientBase(TChannel) Constructor (String, String)

ClientBase(Of TChannel) Constructor (String, 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.

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

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

Parameters

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

ExceptionCondition
ArgumentNullException

The endpoint is Nothing.

ArgumentNullException

The remote address is Nothing.

InvalidOperationException

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 element) and the specified address.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft