Export (0) Print
Expand All

ServiceEndpoint.Address Property

Gets or sets the endpoint address for the service endpoint.

Namespace: System.ServiceModel.Description
Assembly: System.ServiceModel (in system.servicemodel.dll)

public EndpointAddress Address { get; set; }
/** @property */
public EndpointAddress get_Address ()

/** @property */
public void set_Address (EndpointAddress value)

public function get Address () : EndpointAddress

public function set Address (value : EndpointAddress)

Not applicable.

Property Value

The EndpointAddress that specifies the location of the service endpoint.

The default value of ListenUri at which the service endpoint listens is provided by Uri of the EndpointAddress returned by Address.

The following example shows how to add a ServiceEndpoint to an existing ServiceHost and display the address property:

ServiceEndpoint endpnt = serviceHost.AddServiceEndpoint(
    typeof(ICalculator),
    new WSHttpBinding(),
    "CalculatorServiceObject");

Console.WriteLine("Address: {0}", endpnt.Address);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft