HttpTransportBindingElement.ProxyAddress Właściwość

Definicja

Pobiera lub ustawia identyfikator URI zawierający adres serwera proxy do użycia dla żądań HTTP.

public:
 property Uri ^ ProxyAddress { Uri ^ get(); void set(Uri ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.UriTypeConverter))]
public Uri ProxyAddress { get; set; }
public Uri ProxyAddress { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.UriTypeConverter))>]
member this.ProxyAddress : Uri with get, set
member this.ProxyAddress : Uri with get, set
Public Property ProxyAddress As Uri

Wartość właściwości

Uri

Element Uri zawierający adres serwera proxy. Wartość domyślna to null.

Atrybuty

Przykłady

Poniższy przykład ustawia tę właściwość do użycia podczas wykonywania żądań dotyczących powiązania. Wszystkie żądania są kierowane przez ten serwer proxy, chyba że BypassProxyOnLocal ustawiono wartość true , a punkt końcowy jest lokalnym punktem końcowym.

HttpTransportBindingElement httpBinding = new HttpTransportBindingElement();  
httpBinding.ProxyAddress = new Uri(http://proxyserver);  

Dotyczy