T O P I C R E V I E W |
XChicken |
Posted - Jun 20 2009 : 6:10:58 PM 1-?-?add references System.Management 2-?-?coding... string strMac = string.Empty; ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); ManagementObjectCollection moc = mc.GetInstances(); foreach (ManagementObject mo in moc) { if ((bool)mo["IPEnabled"] == true) { strMac += mo["MacAddress"].ToString(); } } 3-?-?as u can see..VA can't resolve the function GetInstances() |
5 L A T E S T R E P L I E S (Newest First) |
support |
Posted - Aug 22 2009 : 7:20:49 PM case=28209 is fixed in build 1731 |
XChicken |
Posted - Jun 25 2009 : 2:21:09 PM : ) |
feline |
Posted - Jun 25 2009 : 12:21:39 PM The C++ CLR problem has been fixed internally, and the fix should show up in the next build. Hopefully it will fix this problem in C# as well. |
XChicken |
Posted - Jun 24 2009 : 5:05:40 PM IDE:VS2008 Team edition language: C# I tried it again.VA won't resolve the function until I reopen the project. So, VA may have the same problem as in C++ CLR. |
feline |
Posted - Jun 22 2009 : 12:50:29 PM If you re-load the IDE does VA now understand the function GetInstances() ?
Which language are you programming in?
This might be a known problem, which we have fixed internally, where new references are not detected until the solution has been reloaded when programming in C++ CLR:
case=28209 |