1
如何創建一個簡單的ping到網站並獲得在線或不在線?創建簡單Ping
例:
var test = new ping()
try{
test.ping(www.google.com)
messagebox.show("your internet connection is ok");
}
catch
{
messagebox.show("you are not connected");
}
這是可能的嗎?我在網上搜索過但沒有發現任何東西
http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx – squiguy