-2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.NetworkInformation;
IPAddress ip = IPAddress.Parse
由於Ping不存在,IPAddress不存在。 我試圖添加System.Net的引用沒有工作。爲什麼使用System.Net.NetworkInformation.Ping Ping不存在?
我的VS是在.NET 4.5
添加'使用System.Net;' –