IRequestChannel.RemoteAddress 属性

定义

获取请求通道将消息发送到的远程地址。

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

属性值

请求通道将消息发送到的 EndpointAddress

示例

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

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

注解

如果未指定 EndpointAddressVia 将用作最终目标和物理地址。 如果已指定 Via,则此地址为消息将要发送至的实际物理地址,且消息必须通过此地址到达目标。

适用于