IsBypassed Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Indicates whether to use the proxy server for the specified host.
Namespace: System.Net
Assembly: System.Http (in System.Http.dll)
Syntax
'Declaration
Public Function IsBypassed ( _
host As Uri _
) As Boolean
public bool IsBypassed(
Uri host
)
public:
virtual bool IsBypassed(
Uri^ host
) sealed
abstract IsBypassed :
host:Uri -> bool
override IsBypassed :
host:Uri -> bool
public final function IsBypassed(
host : Uri
) : boolean
Parameters
- host
Type: System. . :: . .Uri
The Uri instance of the host to check for proxy use.
Return Value
Type: System. . :: . .Boolean
true if the proxy server should not be used for host; otherwise, false.
Implements
IWebProxy. . :: . .IsBypassed(Uri)
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 null Nothing nullptr unit a null reference (Nothing in Visual Basic) .
All other conditions return false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.