How to

determine network connection availability

Published: 8. January 2009 | Updated: 8. January 2009
License: Microsoft Public License (MS-PL)
Categories: Network
Tags: C# Network Windows
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Net.NetworkInformation;

Code

bool available = NetworkInterface.GetIsNetworkAvailable();
Send us feedback about this snippet »



Related Snippets: