ClassNetworkConnection
An abstraction which allows manipulation and monitoring of proxy settings for specific network connection.
Definition
Namespace:Telerik.NetworkConnections
Assembly:Telerik.NetworkConnections.dll
Syntax:
public abstract class NetworkConnection : IEquatable<NetworkConnection>, IDisposable
Inheritance: objectNetworkConnection
Implements:
Inherited Members
Constructors
NetworkConnection(NetworkConnectionFullName)
Initializes a new instance of the NetworkConnection class.
Declaration
protected NetworkConnection(NetworkConnectionFullName fullName)
Parameters
fullName
The full name.
Properties
FullName
Gets the full name of the connection.
Declaration
public NetworkConnectionFullName FullName { get; }
Property Value
The full name of the connection.
Methods
Dispose()
Performs releasing of resources.
Declaration
public void Dispose()
Implements
Dispose(bool)
Releases resources for this instance.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
disposing
Equals(NetworkConnection)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(NetworkConnection other)
Parameters
other
An object to compare with this object.
Returns
true if the current object is equal to the other parameter; otherwise, false.
Implements
Equals(object)
Determines whether the specified object, is equal to this instance.
GetCurrentProxySettings()
Query the system settings and get the HTTP/HTTPS proxy settings and domain bypass list
Declaration
public abstract ProxySettings GetCurrentProxySettings()
Returns
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
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
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides
OnProxySettingsChanged(ProxySettingsChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnProxySettingsChanged(ProxySettingsChangedEventArgs ea)
Parameters
ea
The ProxySettingsChangedEventArgs instance containing the event data.
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
proxySettings
~NetworkConnection()
Finalizes an instance of the NetworkConnection class.
Declaration
protected ~NetworkConnection()
Events
ProxySettingsChanged
Occurs when proxy settings for this connection are changed.
Declaration
public event EventHandler<ProxySettingsChangedEventArgs> ProxySettingsChanged
Event Value