MessageProperties.Via MessageProperties.Via MessageProperties.Via MessageProperties.Via Property

定義

取得或設定傳送訊息時使用的傳輸位址。Gets or sets the transport address that is used to send messages.

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

屬性值

包含傳送訊息時使用之傳輸位址的 URI。A URI that contains the transport address that is used to send messages.

備註

傳輸通道擁有 Via 屬性,而且會覆寫您所設定的任何訊息標頭值。The transport channel owns the Via property and it overwrites whatever value you set for the message headers. 您有一個機會,可以設定通道的Via,這是通道,從通道處理站建立期間,例如,使用CreateChannel(EndpointAddress, Uri)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).

適用於