HttpTransportBindingElement.ProxyAddress Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET