CustomProxySettings Constructor |
Constructs a new CustomProxySettings instance with given proxy rules.
Namespace:
DotNetBrowser.Net.Proxy
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.19.0
Syntax public CustomProxySettings(
string rules,
string exceptions = null
)
Parameters
- rules
- Type: SystemString
string 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 (Optional)
- Type: SystemString
string that represents the set of URLs that should bypass the proxy settings.
Exceptions Exception | Condition |
---|
ArgumentException | Thrown when rules is null, empty or contain only white space. |
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.See Also