Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

WebProxy.BypassProxyOnLocal Property

Gets or sets a value indicating whether to bypass the proxy server for local addresses.

[Visual Basic]
Public Property BypassProxyOnLocal As Boolean
[C#]
public bool BypassProxyOnLocal {get; set;}
[C++]
public: __property bool get_BypassProxyOnLocal();
public: __property void set_BypassProxyOnLocal(bool);
[JScript]
public function get BypassProxyOnLocal() : Boolean;
public function set BypassProxyOnLocal(Boolean);

Property Value

true to bypass the proxy server for local addresses; otherwise, false. The default value is false.

Remarks

The setting of the BypassProxyOnLocal property determines whether WebRequest instances use the proxy server when accessing local Internet resources.

If BypassProxyOnLocal is true, requests to local Internet resources do not use the proxy server. Local requests are identified by the lack of a period (.) in the URI, as in http://webserver/ or access the local server, including http://localhost, http://loopback, or http://127.0.0.1 . When BypassProxyOnLocal is false, all Internet requests are made through the proxy server.

Note   Requests to a local host with a URI containing a period use the proxy. To avoid using a proxy in these cases, create an entry for the host in the BypassList.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

WebProxy Class | WebProxy Members | System.Net Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.