Class
NetworkConnectionsManager

Manager for the available network connections. The class can be instantiated with the NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector>) constructor, or composed using MEF.

Definition

Namespace:Telerik.NetworkConnections

Assembly:Telerik.NetworkConnections.dll

Syntax:

cs-api-definition
public sealed class NetworkConnectionsManager : IDisposable

Inheritance: objectNetworkConnectionsManager

Implements: IDisposable

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

Constructors

NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector>)

Initializes a new instance of the NetworkConnectionsManager class.

Declaration

cs-api-definition
public NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector> networkConnectionsDetectors)

Parameters

networkConnectionsDetectors

IEnumerable<INetworkConnectionsDetector>

The network connections detectors to be executed.

NetworkConnectionsManager(params INetworkConnectionsDetector[])

Initializes a new instance of the NetworkConnectionsManager class.

Declaration

cs-api-definition
public NetworkConnectionsManager(params INetworkConnectionsDetector[] networkConnectionsDetectors)

Parameters

networkConnectionsDetectors

INetworkConnectionsDetector[]

The network connections detectors to be executed.

Methods

Dispose()

Releases the instance.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

GetAllConnectionFullNames()

Gets the names of all detected network connections.

Declaration

cs-api-definition
public IEnumerable<NetworkConnectionFullName> GetAllConnectionFullNames()

Returns

IEnumerable<NetworkConnectionFullName>

GetCurrentProxySettingsForActiveInterface(NetworkConnectionFullName)

Query the active interface settings for a given network connection name and get the HTTP/HTTPS proxy settings and domain bypass list

Declaration

cs-api-definition
public ProxySettings GetCurrentProxySettingsForActiveInterface(NetworkConnectionFullName fullName)

Parameters

fullName

NetworkConnectionFullName

The connection name to query

Returns

ProxySettings

A proxy settings object containing the system proxy settings for the active interface in this network connection

GetCurrentProxySettingsForConnection(NetworkConnectionFullName)

Query the system settings for a given network connection name and get the HTTP/HTTPS proxy settings and domain bypass list

Declaration

cs-api-definition
public ProxySettings GetCurrentProxySettingsForConnection(NetworkConnectionFullName fullName)

Parameters

fullName

NetworkConnectionFullName

The connection name to query

Returns

ProxySettings

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

SetProxySettingsForConnections(ProxySettings, IEnumerable<NetworkConnectionFullName>)

Update the system settings and set the HTTP/HTTPS proxy settings and domain bypass list for a list of network connection names

The proxy settings to apply The list of network connection names to update

Declaration

cs-api-definition
public void SetProxySettingsForConnections(ProxySettings settings, IEnumerable<NetworkConnectionFullName> fullNames)

Parameters

settings

ProxySettings

fullNames

IEnumerable<NetworkConnectionFullName>

SetProxySettingsForConnections(ProxySettings, params NetworkConnectionFullName[])

Update the system settings and set the HTTP/HTTPS proxy settings and domain bypass list for supplied network connection names

The proxy settings to apply The list of network connection names to update

Declaration

cs-api-definition
public void SetProxySettingsForConnections(ProxySettings settings, params NetworkConnectionFullName[] fullNames)

Parameters

settings

ProxySettings

fullNames

NetworkConnectionFullName[]

~NetworkConnectionsManager()

Finalizes an instance of the NetworkConnectionsManager class.

Declaration

cs-api-definition
protected ~NetworkConnectionsManager()

Events

ProxySettingsChanged

Occurs when proxy settings for any of the detected network connection changes.

Declaration

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

Event Value

EventHandler<ProxySettingsChangedEventArgs>