แก้ไข

แชร์ผ่าน


IRequestChannel.RemoteAddress Property

Definition

Gets the remote address to which the request channel sends messages.

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

Property Value

The EndpointAddress to which the request channel sends messages.

Examples

The following code shows how to implement this property.

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

Remarks

The EndpointAddress serves as both the ultimate destination and the physical address if a Via is not specified. 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.

Applies to