SystemInformation.Network Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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.

System_CAPS_noteNote

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
Show: