Hello guys
I am trying to get by code the network card name in C# by using System Managment.
The code is something like this.
"ManagementClass mc = new ManagementClass("Win32_NetworkAdapter");
ManagementObjectCollection moc = mc.GetInstances();
string nicCardName;
foreach(ManagementObject mo in moc)
{
nicCardName = mo["propertyName"].ToString();
MessageBox.Show(nicCardName);
}
"
Anyone knows the propertyName. For example the property name could be mo["MACAddress"] for the machine mac number. anyone tell me the property name for the NIC card.