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