<client> (Silverlight)

Silverlight

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


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

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.

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>

Community Additions

ADD
Show: