IOutputChannel.Via 屬性

定義

取得包含輸出通道上訊息之目標傳輸位址的 URI。

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

屬性值

Uri

包含在輸出通道上傳送訊息之目標傳輸位址的 Uri

範例

下列程式碼說明如何實作這個屬性:

public IAsyncResult BeginReceiveRequest(AsyncCallback callback, object state)
{
    return BeginReceiveRequest(DefaultReceiveTimeout, callback, state);
}

備註

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

適用於