Share via


IRequestChannel.Via 屬性

定義

取得此要求傳送的目標傳輸位址。

public:
 property Uri ^ Via { Uri ^ get(); };
public Uri Via { get; }
member this.Via : Uri
Public ReadOnly Property Via As Uri

屬性值

Uri

包含訊息傳送之目標傳輸位址的 Uri

範例

下列程式碼會示範如何實作這個屬性。

public Uri Via
{
    get { return this.InnerChannel.Via; }
}

備註

如果沒有指定 EndpointAddressVia 會同時當做最終目的端和實體位址。 如果指定了 Via,這就是訊息傳送的實際實體目標位址,而且訊息必須透過這個位址,才能到達目的端。

適用於