Editar

Compartir a través de


HttpTransportBindingElement.ProxyAddress Property

Definition

Gets or sets a URI that contains the address of the proxy to use for HTTP requests.

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

Property Value

Uri

The Uri that contains the address for the proxy. The default value is null.

Attributes

Examples

The following example sets this property to use when performing requests on the binding. All requests are routed through this proxy, unless BypassProxyOnLocal is set to true and the endpoint is a local endpoint.

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

Applies to