Export (0) Print
Expand All

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
[C#]
public virtual bool IsBypassed(
 Uri host
);
[C++]
public: virtual bool IsBypassed(
 Uri* host
);
[JScript]
public function IsBypassed(
   host : Uri
) : Boolean;

Parameters

host
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.

Implements

IWebProxy.IsBypassed

Remarks

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.

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

.NET Framework Security: 

See Also

WebProxy Class | WebProxy Members | System.Net Namespace

Show:
© 2014 Microsoft