- host
- The Uri instance of the host to check for proxy use.
true if the proxy server should not be used for host; otherwise, false.
Type Reason ArgumentException The WebProxy.BypassList of the current instance contains an invalid regular expression.
The WebProxy.IsBypassed(Uri) method is used to determine whether to bypass the proxy server when accessing an Internet resource.
The WebProxy.BypassProxyOnLocal and WebProxy.BypassList properties control the return value of the WebProxy.IsBypassed(Uri) method.
WebProxy.IsBypassed(Uri) returns true under any of the following conditions:
If WebProxy.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 WebProxy.BypassList.
If WebProxy.Address is null.
All other conditions return false.