• 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 NetworkConnection

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

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

Syntax

public abstract class NetworkConnection : Object, IEquatable<NetworkConnection>, IDisposable

Constructors

NetworkConnection(NetworkConnectionFullName)

Initializes a new instance of the NetworkConnection class.

Declaration
protected NetworkConnection(NetworkConnectionFullName fullName)
Parameters
NetworkConnectionFullName fullName

The full name.

Properties

FullName

Gets the full name of the connection.

Declaration
public NetworkConnectionFullName FullName { get; }
Property Value
NetworkConnectionFullName

The full name of the connection.

Methods

Dispose()

Performs releasing of resources.

Declaration
public void Dispose()

Dispose(Boolean)

Releases resources for this instance.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.Boolean disposing

Equals(Object)

Determines whether the specified System.Object, is equal to this instance.

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

The System.Object to compare with this instance.

Returns
System.Boolean

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

Equals(NetworkConnection)

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

Declaration
public bool Equals(NetworkConnection other)
Parameters
NetworkConnection other

An object to compare with this object.

Returns
System.Boolean

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

Finalize()

Finalizes an instance of the NetworkConnection class.

Declaration
protected override void Finalize()

GetCurrentProxySettings()

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

Declaration
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
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
public override int GetHashCode()
Returns
System.Int32

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

OnProxySettingsChanged(ProxySettingsChangedEventArgs)

Raises the ProxySettingsChanged event.

Declaration
protected virtual void OnProxySettingsChanged(ProxySettingsChangedEventArgs ea)
Parameters
ProxySettingsChangedEventArgs ea

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
public abstract void SetProxySettings(ProxySettings proxySettings)
Parameters
ProxySettings proxySettings

Events

ProxySettingsChanged

Occurs when proxy settings for this connection are changed.

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.