<client> (Silverlight)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

The client element is used to define a list of endpoints to which a client can connect.

Syntax

<system.serviceModel>
    <client>
        <endpoint />
    </client>
</system.serviceModel>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element Description

<endpoint> of <client> (Silverlight)

Specifies contract, binding, and address properties of the channel endpoint, which is used by clients to connect to service endpoints on the server.

Parent Elements

Element Description

<system.serviceModel> (Silverlight)

This configuration section contains all of the elements used to configure a Silverlight application to communicate with a Web service.

Example

The following code sample shows how to configure the bindings and client for a Silverlight application.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.serviceModel>
        <bindings>
           <!-- List of Bindings -->
        </bindings>
        <client>
           <!-- List of Endpoints -->
        </client>
    </system.serviceModel>
</configuration>