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

Eine Uri, die als Adresse für den HTTP-Proxy dient. Der Standardwert ist null.

Beispiele

Im folgenden Beispiel wird das Angeben der Adresse des HTTP-Proxys veranschaulicht.

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 UseDefaultWebProxy auf true festgelegt ist, wird ProxyAddress ignoriert.

Gilt für: