共用方式為


WSDualHttpBinding.ClientBaseAddress 屬性

定義

取得或設定用戶端的基底位址。

public:
 property Uri ^ ClientBaseAddress { Uri ^ get(); void set(Uri ^ value); };
public Uri ClientBaseAddress { get; set; }
member this.ClientBaseAddress : Uri with get, set
Public Property ClientBaseAddress As Uri

屬性值

Uri

是用戶端基底位址的 Uri。 預設值是 null

範例

下列範例會示範如何在組態檔中指定 wsDualHttpBinding 繫結。

WSDualHttpBinding dualBinding = new WSDualHttpBinding();
EndpointAddress endptadr = new EndpointAddress("http://localhost:12000/DuplexTestUsingCode/Server");
dualBinding.ClientBaseAddress = new Uri("http://localhost:8000/DuplexTestUsingCode/Client/");
Dim dualBinding As New WSDualHttpBinding()
Dim endptadr As New EndpointAddress("http://localhost:12000/DuplexTestUsingCode/Server")
dualBinding.ClientBaseAddress = New Uri("http://localhost:8000/DuplexTestUsingCode/Client/")

備註

用戶端的這個公用 URI 會提供當合約為雙工合約時,服務聯繫用戶端所需的回呼端點。

適用於