using System.Net.NetworkInformation;
NetworkInterface networkinterface = NetworkInterface.GetAllNetworkInterfaces()[0]; 
PhysicalAddress physicaladdress = networkinterface.GetPhysicalAddress(); 
this.Label1.Text = "Mac Address:" + physicaladdress.ToString();
沒有留言:
張貼留言