Export (0) Print
Expand All

ClientRuntime.Via Property

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

Namespace:  System.ServiceModel.Dispatcher
Assemblies:   System.ServiceModel (in System.ServiceModel.dll)
  System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)

public Uri Via { get; set; }

Property Value

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

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft