SystemInformation.Network Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a value indicating whether a network connection is present.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

static member Network : bool with get

Property Value

Type: System.Boolean

true if a network connection is present; otherwise, false.

The Network property indicates whether the system has a currently established network connection.


This property always returns true on all Windows platforms supported by the .NET Framework. Use the System.Net.NetworkInformation namespace to retrieve more accurate network status.

The following code example lists all properties of the SystemInformation class in a ListBox and displays the current value of the property in a TextBox when a list item selected.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top