This documentation is archived and is not being maintained.

IInputChannel.LocalAddress Property

Gets the address on which the input channel receives messages.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

EndpointAddress LocalAddress { get; }

Property Value

Type: System.ServiceModel.EndpointAddress
The EndpointAddress on which the input channel receives messages.

If this input channel does not have a standalone address (for example, it is the input-side of a client-initiated TCP channel), then this property is null.

This property can be used by higher-level channels for correlation purposes. For example, if a higher-level channel implements request-reply on top of a IDuplexChannel, it can use the LocalAddress property in the WS-Addressing ReplyTo header.

The following code illustrates how to implement this property:

public EndpointAddress LocalAddress
        return this.InnerChannel.LocalAddress;

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.