Class ProxySettings
Describes proxy settings collection for HTTP/HTTPS proxy and bypass hosts list
Inheritance
Namespace: Telerik.NetworkConnections
Assembly: Telerik.NetworkConnections.dll
Syntax
public class ProxySettings : Object, IEquatable<ProxySettings>
Constructors
ProxySettings()
Creates a new empty ProxySettings instance
Declaration
public ProxySettings()
ProxySettings(Boolean, Boolean, String, String, Boolean, String, UInt16, Boolean, String, UInt16, Boolean, String, UInt16, Boolean, String, UInt16)
Creates a new ProxySettings instance with specific properties
Declaration
public ProxySettings(bool useWebProxyAutoDiscovery, bool proxyAutoConfigEnabled, string proxyAutoConfigUrl, string bypassHosts, bool httpProxyEnabled, string httpProxyHost, ushort httpProxyPort, bool httpsProxyEnabled, string httpsProxyHost, ushort httpsProxyPort, bool ftpProxyEnabled, string ftpProxyHost, ushort ftpProxyPort, bool socksProxyEnabled, string socksProxyHost, ushort socksProxyPort)
Parameters
System. Set to true to enable WPAD for the proxy settings |
System. Whether to use a PAC script for getting the proxy configuration |
System. The URL of a PAC script to use for proxy configuration |
System. A semicolon separated list of hosts that will bypass the proxy |
System. True if HTTP proxy is set |
System. The host to use for HTTP proxy settings |
System. The port to use for HTTP proxy settings |
System. True if HTTPS proxy is set |
System. The host to use for HTTPS proxy settings |
System. The port to use for HTTPS proxy settings |
System. (Obsolete) True if FTP proxy is set |
System. (Obsolete) The host to use for FTP proxy settings |
System. (Obsolete) The port to use for FTP proxy settings |
System. (Obsolete) True if SOCKS proxy is set |
System. (Obsolete) The host to use for SOCKS proxy settings |
System. (Obsolete) The port to use for SOCKS proxy settings |
ProxySettings(Boolean, String)
Creates a new ProxySettings instance with specific properties
Declaration
public ProxySettings(bool useWebProxyAutoDiscovery, string bypassHosts)
Parameters
System. Set to true to enable WPAD for the proxy settings |
System. A semicolon separated list of hosts that will bypass the proxy |
ProxySettings(Boolean, String, String)
Creates a new ProxySettings instance with specific properties
Declaration
public ProxySettings(bool proxyAutoConfigEnabled, string proxyAutoConfigUrl, string bypassHosts)
Parameters
System. Whether to use a PAC script for getting the proxy configuration |
System. The URL of a PAC script to use for proxy configuration |
System. A semicolon separated list of hosts that will bypass the proxy |
ProxySettings(Boolean, String, UInt16, String)
Creates a new ProxySettings instance with specific properties
Declaration
public ProxySettings(bool allProtocolsEnabled, string allProtocolsHost, ushort allProtocolsPort, string bypassHosts)
Parameters
System. True if HTTP/HTTPS proxy settings are set |
System. The proxy host to use for HTTP/HTTPS proxy settings |
System. The proxy port to use for HTTP/HTTPS proxy settings |
System. A semicolon separated list of hosts that will bypass the proxy |
Properties
BypassHosts
A semicolon separated list of hosts that will bypass the proxy
Declaration
public string BypassHosts { get; set; }
Property Value
System.
|
FtpProxyEnabled
(Obsolete) Set to true if FTP proxy is set
Declaration
public bool FtpProxyEnabled { get; set; }
Property Value
System.
|
FtpProxyHost
(Obsolete) The host to use for FTP proxy settings
Declaration
public string FtpProxyHost { get; set; }
Property Value
System.
|
FtpProxyPort
(Obsolete) The port to use for FTP proxy settings
Declaration
public ushort FtpProxyPort { get; set; }
Property Value
System.
|
HttpProxyEnabled
Set to true if HTTP proxy is set
Declaration
public bool HttpProxyEnabled { get; set; }
Property Value
System.
|
HttpProxyHost
The host to use for HTTP proxy settings
Declaration
public string HttpProxyHost { get; set; }
Property Value
System.
|
HttpProxyPort
The port to use for HTTP proxy settings
Declaration
public ushort HttpProxyPort { get; set; }
Property Value
System.
|
HttpsProxyEnabled
Set to true if HTTPS proxy is set
Declaration
public bool HttpsProxyEnabled { get; set; }
Property Value
System.
|
HttpsProxyHost
The host to use for HTTPS proxy settings
Declaration
public string HttpsProxyHost { get; set; }
Property Value
System.
|
HttpsProxyPort
The port to use for HTTPS proxy settings
Declaration
public ushort HttpsProxyPort { get; set; }
Property Value
System.
|
ProxyAutoConfigEnabled
Whether to use a PAC script for getting the proxy configuration
Declaration
public bool ProxyAutoConfigEnabled { get; set; }
Property Value
System.
|
ProxyAutoConfigUrl
The URL of a PAC script to use for proxy configuration
Declaration
public string ProxyAutoConfigUrl { get; set; }
Property Value
System.
|
SocksProxyEnabled
(Obsolete) Set to true if SOCKS proxy is set
Declaration
public bool SocksProxyEnabled { get; set; }
Property Value
System.
|
SocksProxyHost
(Obsolete) The host to use for SOCKS proxy settings
Declaration
public string SocksProxyHost { get; set; }
Property Value
System.
|
SocksProxyPort
(Obsolete) The port to use for SOCKS proxy settings
Declaration
public ushort SocksProxyPort { get; set; }
Property Value
System.
|
UseWebProxyAutoDiscovery
Set to true to enable WPAD for the proxy settings
Declaration
public bool UseWebProxyAutoDiscovery { get; set; }
Property Value
System.
|
Methods
Equals(Object)
Implements the System.IEquatable<> interface Equals for comparing to another object
Declaration
public override bool Equals(object obj)
Parameters
System. The object instance to compare to |
Returns
System. True if the object is a Proxy |
Equals(ProxySettings)
Compares this instance to another Proxy
Declaration
public bool Equals(ProxySettings other)
Parameters
Proxy The Proxy |
Returns
System. True if the proxy settings are equal |
GetHashCode()
Implements the System.IEquatable<> interface GetHashCode
Declaration
public override int GetHashCode()
Returns
System. A hash code for the proxy settings |
GetProxyServerString()
Returns a string representation of the current proxy settings
Declaration
public string GetProxyServerString()
Returns
System.
|
Operators
Equality(ProxySettings, ProxySettings)
Compares two Proxy
Declaration
public static bool operator ==(ProxySettings left, ProxySettings right)
Parameters
Proxy First Proxy |
Proxy Second Proxy |
Returns
System. True if the proxy settings are equal |
Inequality(ProxySettings, ProxySettings)
Compares two Proxy
Declaration
public static bool operator !=(ProxySettings left, ProxySettings right)
Parameters
Proxy First Proxy |
Proxy Second Proxy |
Returns
System. True if the proxy settings are not equal |