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.
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.
| Exception | Condition |
|---|---|
| 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.