Constructor CustomProxySettings
- Namespace
- DotNetBrowser.Net.Proxy
- Assembly
- DotNetBrowser.dll
CustomProxySettings(string, string)
Constructs a new CustomProxySettings instance with given proxy rules.
public CustomProxySettings(string rules, string exceptions = null)
Parameters
rules
stringstring that represents proxy rules in specified format. The string should be a semicolon-separated list of ordered proxies that apply to a particular URL scheme.
exceptions
stringstring that represents the set of URLs that should bypass the proxy settings.
Remarks
Examples of the proxy rules string:
"http=foopy:80;ftp=foopy2"
use HTTP proxy "foopy:80" for http://
URLs,
and HTTP proxy "foopy2:80" for %ftp://
URLs.
"socks4://foopy"
use SOCKS v4 proxy "foopy:1080" for all URLs.Exceptions
- ArgumentException
Thrown when
rules
is null, empty or contain only white space.