本文介绍了如何匹配本地局域网卡mac地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
unsg c#和Sql server明白我试过但不这样做
我尝试过:
asa
unsg c# and Sql server understand i have try but not do this
What I have tried:
asa
推荐答案
string databaseMAC = ?? // the value from the database
foreach (ManagementObject mo in queryCollection)
{
if (mo["MACAddress"] != null) // check for null entries
{
if (mo["MACAddress"].ToString().Equals(databaseMAC))
{
MAC = mo["MACAddress"].ToString(); // capture the matching value
// found it
break;
}
}
}
if (MAC == null)
{
// no matching entry found
}
这篇关于如何匹配本地局域网卡mac地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!