In the above code, “meta” tags are not necessary. They have been automatically added by Visual Studio. The above would automatically list all IP addresses belonging to a computer along with caption, description, DHCP info and DNS info. To retrieve this information, I used a built-in class, “Win32_NetworkAdapterConfiguration.” The class internally has a lot of properties, methods and events. But, in the above example we concentrated only on some limited properties, related to the “Win32_NetworkAdapterConfiguration” class.
The “for” loop I used in the above code iterates for every logical network adapter present in the system and finally retrieves only the properties of that adapter.