This documentation is archived and is not being maintained.

WebProxy.IsBypassed Method

Indicates whether to use the proxy server for the specified host.

[Visual Basic]
Public Overridable Function IsBypassed( _
   ByVal host As Uri _
) As Boolean Implements IWebProxy.IsBypassed
public virtual bool IsBypassed(
 Uri host
public: virtual bool IsBypassed(
 Uri* host
public function IsBypassed(
   host : Uri
) : Boolean;


The Uri of the host to check for proxy use.

Return Value

true if the proxy server should not be used for host; otherwise, false.




The IsBypassed method is used to determine whether to bypass the proxy server when accessing an Internet resource.

The BypassProxyOnLocal and BypassList properties control the return value of the IsBypassed method.

IsBypassed returns true under any of the following conditions.

  • If BypassProxyOnLocal is true and host is a local URI. Local requests are identified by the lack of a period (.) in the URI, as in "http://webserver/".
  • If host matches a regular expression in BypassList.
  • If Address is a null reference (Nothing in Visual Basic).

All other conditions return false.


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

.NET Framework Security: 

See Also

WebProxy Class | WebProxy Members | System.Net Namespace