IOutputChannel.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

输出通道发送的消息将要到达的服务的 EndpointAddress

示例

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

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

注解

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

适用于