IOutputChannel.RemoteAddress 属性

定义

获取在输出通道上发出的消息将要到达的服务的目标。Gets the destination of the service to which messages are sent out on the output channel.

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

输出通道发送的消息将要到达的服务的 EndpointAddressThe EndpointAddress of the service to which the output channel sends messages.

示例

下面的代码演示如何实现此属性:The following code illustrates how to implement this property:

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

注解

如果未指定 EndpointAddressVia 将用作最终目标和物理地址。The EndpointAddress serves as both the ultimate destination and the physical address if a Via is not specified. 如果已指定 Via,则此地址为消息将要发送至的实际物理地址,且消息必须通过此地址到达目标。If the Via is specified, then that is the actual physical address to which the message is sent and through which the message must go to arrive at its destination.

适用于