MessageProperties::Via Property

 

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

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property Uri^ Via {
	Uri^ get();
	void set(Uri^ value);
}

Property Value

Type: System::Uri^

A URI that contains the transport address that is used to send messages.

The transport channel owns the Via property and it overwrites whatever value you set for the message headers. You do have one opportunity to set the channel's Via, which is during the creation of the channel from the channel factory, for example, with CreateChannel(EndpointAddress^, Uri^).

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: