Class NetworkConnection
An abstraction which allows manipulation and monitoring of proxy settings for specific network connection.
Inheritance
Namespace: Telerik.NetworkConnections
Assembly: Telerik.NetworkConnections.dll
Syntax
public abstract class NetworkConnection : Object, IEquatable<NetworkConnection>, IDisposable
Constructors
NetworkConnection(NetworkConnectionFullName)
Initializes a new instance of the Network
Declaration
protected NetworkConnection(NetworkConnectionFullName fullName)
Parameters
Network The full name. |
Properties
FullName
Gets the full name of the connection.
Declaration
public NetworkConnectionFullName FullName { get; }
Property Value
Network The full name of the connection. |
Methods
Dispose()
Performs releasing of resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases resources for this instance.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.
|
Equals(Object)
Determines whether the specified System.
Declaration
public override bool Equals(object obj)
Parameters
System. The System. |
Returns
System.
|
Equals(NetworkConnection)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(NetworkConnection other)
Parameters
Network An object to compare with this object. |
Returns
System. true if the current object is equal to the |
Finalize()
Finalizes an instance of the Network
Declaration
protected override void Finalize()
GetCurrentProxySettings()
Query the system settings and get the HTTP/HTTPS proxy settings and domain bypass list
Declaration
public abstract ProxySettings GetCurrentProxySettings()
Returns
Proxy A proxy settings object containing the system proxy settings for this network connection |
GetCurrentProxySettingsForActiveInterface()
Query the active interface settings and get the HTTP/HTTPS proxy settings and domain bypass list
Declaration
public virtual ProxySettings GetCurrentProxySettingsForActiveInterface()
Returns
Proxy A proxy settings object containing the system proxy settings for this network connection |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
OnProxySettingsChanged(ProxySettingsChangedEventArgs)
Raises the Proxy
Declaration
protected virtual void OnProxySettingsChanged(ProxySettingsChangedEventArgs ea)
Parameters
Proxy The Proxy |
SetProxySettings(ProxySettings)
Update the system settings and set the HTTP/HTTPS proxy settings and domain bypass list for this network connection
Declaration
public abstract void SetProxySettings(ProxySettings proxySettings)
Parameters
Proxy
|
Events
ProxySettingsChanged
Occurs when proxy settings for this connection are changed.
Declaration
public event EventHandler<ProxySettingsChangedEventArgs> ProxySettingsChanged
Event Type
System.
|