ClientViaBehavior 類別

定義

用戶端會使用 ClientViaBehavior,以指定傳輸通道應該建立的 URI。

public ref class ClientViaBehavior : System::ServiceModel::Description::IEndpointBehavior
public class ClientViaBehavior : System.ServiceModel.Description.IEndpointBehavior
type ClientViaBehavior = class
    interface IEndpointBehavior
Public Class ClientViaBehavior
Implements IEndpointBehavior
繼承
ClientViaBehavior
實作

備註

如果用戶端端點上的行為集合中存在這類行為,傳輸就會使用所提供的 URI,而堆疊中的所有其他通道層,則會使用 EndpointAddress 建構階段時提供的 ChannelFactory。 這個 EndpointAddress 也會變成 WS-Addressing To 標頭。

當立即網路目的不是訊息的預期處理器時,請使用這個行為,以便在呼叫應用程式不需要知道最終目的,或者目的 Via 標頭不是位址時啟用多重躍點交談。

您也可以在用戶端應用程式設定檔中使用 < clientVia > 元素來設定此值。

建構函式

ClientViaBehavior(Uri)

初始化 ClientViaBehavior 類別的新執行個體。

屬性

Uri

取得或設定應建立之傳輸通道的 URI。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

未實作。

IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

Via 設定為所建立之傳輸通道的 URI。

IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

實作端點上服務的修改或延伸。

IEndpointBehavior.Validate(ServiceEndpoint)

未實作。

適用於