Edit

Share via


ClientRuntime.Via Property

Definition

Gets or sets the transport address that is used to send messages through the client.

public:
 property Uri ^ Via { Uri ^ get(); void set(Uri ^ value); };
public Uri Via { get; set; }
member this.Via : Uri with get, set
Public Property Via As Uri

Property Value

Uri

A Uri that is the destination address for the transport. The default value is the Uri value of the client.

Remarks

Set the Via property to specify a transport address for messages when the immediate destination of messages is not the client's Uri. This enables you to specify SOAP intermediaries and handle scenarios in which the value of the Uri property of the client is a logical name.

It is this value that the System.ServiceModel.Description.ClientViaBehavior sets from a configuration file.

Applies to