在控制台應用程式中,獲取電腦名: class Bp { public void LocalComputerName() { var computerName = System.Environment.MachineName; Console.WriteLine(computerName); Con ...
class Bp { public void LocalComputerName() { var computerName = System.Environment.MachineName; Console.WriteLine(computerName); Console.ReadLine(); } }Source Code
控制台輸出: