1 在.NET中没有本地支持,您需要调用win api,特别是wininet.dll并调用InternetGetConnectedState function。您可以使用以下链接与示例代码。代码是在VB中,但你可以很容易convert it to c#。 How to determine the connection state of your local system and how to initiate or end an Internet connection 来源 2011-12-31 12:54:36 +0 谢谢柠多! – 2012-01-01 11:20:32
谢谢柠多! – 2012-01-01 11:20:32