作者camel0118 (camel)
看板C_Sharp
标题[问题]取得本机网卡及dns资讯设定
时间Tue Apr 22 09:55:50 2014
对於c#还是初学者,上msdn找过,
可取得local ip资讯,用的是 System.Net 及 Dns.GetHostEntry
不知是否能取得网卡介面进而设定ip 及dns
求指引方向..感谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.34.121.212
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1398131752.A.41A.html
1F:→ iterator:取得资讯, System.Net.NetworkInterface 04/22 10:11
2F:→ iterator:如果你要进行设定, 就需要用到 WMI 之类的其他方法. 04/22 10:12