ClassNetworkConnectionsManager
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:
public sealed class NetworkConnectionsManager : IDisposable
Inheritance: objectNetworkConnectionsManager
Implements:
Inherited Members
Constructors
NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector>)
Initializes a new instance of the NetworkConnectionsManager class.
Declaration
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
public NetworkConnectionsManager(params INetworkConnectionsDetector[] networkConnectionsDetectors)
Parameters
networkConnectionsDetectors
The network connections detectors to be executed.
Methods
GetAllConnectionFullNames()
Gets the names of all detected network connections.
Declaration
public IEnumerable<NetworkConnectionFullName> GetAllConnectionFullNames()
Returns
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
public ProxySettings GetCurrentProxySettingsForActiveInterface(NetworkConnectionFullName fullName)
Parameters
fullName
The connection name to query
Returns
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
public ProxySettings GetCurrentProxySettingsForConnection(NetworkConnectionFullName fullName)
Parameters
fullName
The connection name to query
Returns
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 updateDeclaration
public void SetProxySettingsForConnections(ProxySettings settings, IEnumerable<NetworkConnectionFullName> fullNames)
Parameters
settings
fullNames
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 updateDeclaration
public void SetProxySettingsForConnections(ProxySettings settings, params NetworkConnectionFullName[] fullNames)
Parameters
settings
fullNames
~NetworkConnectionsManager()
Finalizes an instance of the NetworkConnectionsManager class.
Declaration
protected ~NetworkConnectionsManager()
Events
ProxySettingsChanged
Occurs when proxy settings for any of the detected network connection changes.
Declaration
public event EventHandler<ProxySettingsChangedEventArgs> ProxySettingsChanged
Event Value