IInputChannel.LocalAddress 属性

定义

获取输入通道接收消息的地址。

public:
 property System::ServiceModel::EndpointAddress ^ LocalAddress { System::ServiceModel::EndpointAddress ^ get(); };
public System.ServiceModel.EndpointAddress LocalAddress { get; }
member this.LocalAddress : System.ServiceModel.EndpointAddress
Public ReadOnly Property LocalAddress As EndpointAddress

属性值

EndpointAddress

输入通道接收消息的 EndpointAddress

示例

下面的代码演示如何实现此属性:

public EndpointAddress LocalAddress
{
    get
    {
        return this.InnerChannel.LocalAddress;
    }
}

注解

如果输入通道没有独立地址(例如,它是客户端启动的 TCP 通道的输入方),则此属性为 null

为了实现关联,此属性可由更高层的通道使用。 例如,如果更高层通道在 IDuplexChannel 之上实现请求-回复,它可以在 WS-Addressing ReplyTo 标头中使用 LocalAddress

适用于