取得机器名称
using System; using System.Net; class GetIP { public static void Main() { Console.WriteLine (Host name : {0}, Dns.GetHostName()); } }
取得机器名称
using System; using System.Net; class GetIP { public static void Main() { Console.WriteLine (Host name : {0}, Dns.GetHostName()); } }