Freigeben über


WSDualHttpBinding.ProxyAddress Eigenschaft

Definition

Ruft die URI-Adresse des HTTP-Proxys ab oder legt sie fest.

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

Eigenschaftswert

Uri

A Uri , das als Adresse des HTTP-Proxys dient. Der Standardwert ist null.

Beispiele

Das folgende Beispiel zeigt, wie die Adresse des HTTP-Proxys angegeben wird.

string proxyAddressString = "http://localhost:5049";
Uri proxyBaseAddressUri = new Uri(proxyAddressString);
binding.ProxyAddress = proxyBaseAddressUri;
Dim proxyAddressString As String = "http://localhost:5049"
Dim proxyBaseAddressUri As New Uri(proxyAddressString)
binding.ProxyAddress = proxyBaseAddressUri

Hinweise

Wenn der Wert auf <a0/> festgelegt ist, wird der Wert des Werts ignoriert.

Gilt für: