• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • jQuery
    • Angular
    • React
    • Vue
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class NetworkConnectionsManager

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

Inheritance
System.Object
NetworkConnectionsManager
Namespace: Telerik.NetworkConnections
Assembly: Telerik.NetworkConnections.dll

Syntax

public sealed class NetworkConnectionsManager : Object, IDisposable

Constructors

NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector>)

Initializes a new instance of the NetworkConnectionsManager class.

Declaration
public NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector> networkConnectionsDetectors)
Parameters
System.Collections.Generic.IEnumerable<INetworkConnectionsDetector> networkConnectionsDetectors

The network connections detectors to be executed.

NetworkConnectionsManager(INetworkConnectionsDetector[])

Initializes a new instance of the NetworkConnectionsManager class.

Declaration
public NetworkConnectionsManager(params INetworkConnectionsDetector[] networkConnectionsDetectors)
Parameters
INetworkConnectionsDetector[] networkConnectionsDetectors

The network connections detectors to be executed.

Methods

Dispose()

Releases the instance.

Declaration
public void Dispose()

Finalize()

Finalizes an instance of the NetworkConnectionsManager class.

Declaration
protected override void Finalize()

GetAllConnectionFullNames()

Gets the names of all detected network connections.

Declaration
public IEnumerable<NetworkConnectionFullName> GetAllConnectionFullNames()
Returns
System.Collections.Generic.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
public ProxySettings GetCurrentProxySettingsForActiveInterface(NetworkConnectionFullName fullName)
Parameters
NetworkConnectionFullName fullName

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
public ProxySettings GetCurrentProxySettingsForConnection(NetworkConnectionFullName fullName)
Parameters
NetworkConnectionFullName fullName

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
public void SetProxySettingsForConnections(ProxySettings settings, IEnumerable<NetworkConnectionFullName> fullNames)
Parameters
ProxySettings settings

System.Collections.Generic.IEnumerable<NetworkConnectionFullName> fullNames

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
ProxySettings settings

NetworkConnectionFullName[] fullNames

Events

ProxySettingsChanged

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

Declaration
public event EventHandler<ProxySettingsChangedEventArgs> ProxySettingsChanged
Event Type
System.EventHandler<ProxySettingsChangedEventArgs>

See Also

System.IDisposable
Getting Started
  • Try Now
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.