Class NetworkConnectionsManager
Manager for the available network connections. The class can be instantiated with the NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector>) constructor, or composed using MEF.
Inheritance
Namespace: Telerik.NetworkConnections
Assembly: Telerik.NetworkConnections.dll
Syntax
public sealed class NetworkConnectionsManager : Object, IDisposable
Constructors
NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector>)
Initializes a new instance of the Network
Declaration
public NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector> networkConnectionsDetectors)
Parameters
System. The network connections detectors to be executed. |
NetworkConnectionsManager(INetworkConnectionsDetector[])
Initializes a new instance of the Network
Declaration
public NetworkConnectionsManager(params INetworkConnectionsDetector[] networkConnectionsDetectors)
Parameters
INetwork The network connections detectors to be executed. |
Methods
Dispose()
Releases the instance.
Declaration
public void Dispose()
Finalize()
Finalizes an instance of the Network
Declaration
protected override void Finalize()
GetAllConnectionFullNames()
Gets the names of all detected network connections.
Declaration
public IEnumerable<NetworkConnectionFullName> GetAllConnectionFullNames()
Returns
System.
|
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
Network The connection name to query |
Returns
Proxy 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
Network The connection name to query |
Returns
Proxy 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
public void SetProxySettingsForConnections(ProxySettings settings, IEnumerable<NetworkConnectionFullName> fullNames)
Parameters
Proxy
|
System.
|
SetProxySettingsForConnections(ProxySettings, 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
public void SetProxySettingsForConnections(ProxySettings settings, params NetworkConnectionFullName[] fullNames)
Parameters
Proxy
|
Network
|
Events
ProxySettingsChanged
Occurs when proxy settings for any of the detected network connection changes.
Declaration
public event EventHandler<ProxySettingsChangedEventArgs> ProxySettingsChanged
Event Type
System.
|