Class
NetworkConnection

An abstraction which allows manipulation and monitoring of proxy settings for specific network connection.

Definition

Namespace:Telerik.NetworkConnections

Assembly:Telerik.NetworkConnections.dll

Syntax:

cs-api-definition
public abstract class NetworkConnection : IEquatable<NetworkConnection>, IDisposable

Inheritance: objectNetworkConnection

Implements: IDisposableIEquatable<NetworkConnection>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object, object)object.ReferenceEquals(object, object)

Constructors

NetworkConnection(NetworkConnectionFullName)

Initializes a new instance of the NetworkConnection class.

Declaration

cs-api-definition
protected NetworkConnection(NetworkConnectionFullName fullName)

Parameters

fullName

NetworkConnectionFullName

The full name.

Properties

FullName

Gets the full name of the connection.

Declaration

cs-api-definition
public NetworkConnectionFullName FullName { get; }

Property Value

NetworkConnectionFullName

The full name of the connection.

Methods

Dispose()

Performs releasing of resources.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Dispose(bool)

Releases resources for this instance.

Declaration

cs-api-definition
protected virtual void Dispose(bool disposing)

Parameters

disposing

bool

Equals(NetworkConnection)

Indicates whether the current object is equal to another object of the same type.

Declaration

cs-api-definition
public bool Equals(NetworkConnection other)

Parameters

other

NetworkConnection

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Implements IEquatable<NetworkConnection>.Equals(NetworkConnection)

Equals(object)

Determines whether the specified object, is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides object.Equals(object)

GetCurrentProxySettings()

Query the system settings and get the HTTP/HTTPS proxy settings and domain bypass list

Declaration

cs-api-definition
public abstract ProxySettings GetCurrentProxySettings()

Returns

ProxySettings

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

cs-api-definition
public virtual ProxySettings GetCurrentProxySettingsForActiveInterface()

Returns

ProxySettings

A proxy settings object containing the system proxy settings for this network connection

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides object.GetHashCode()

OnProxySettingsChanged(ProxySettingsChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnProxySettingsChanged(ProxySettingsChangedEventArgs ea)

Parameters

ea

ProxySettingsChangedEventArgs

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

cs-api-definition
public abstract void SetProxySettings(ProxySettings proxySettings)

Parameters

proxySettings

ProxySettings

~NetworkConnection()

Finalizes an instance of the NetworkConnection class.

Declaration

cs-api-definition
protected ~NetworkConnection()

Events

ProxySettingsChanged

Occurs when proxy settings for this connection are changed.

Declaration

cs-api-definition
public event EventHandler<ProxySettingsChangedEventArgs> ProxySettingsChanged

Event Value

EventHandler<ProxySettingsChangedEventArgs>