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.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- endpointConfigurationName
- Type: System.String
The name of the endpoint in the application configuration file.
| Exception | Condition |
|---|---|
| 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.