Get Mac Address and Adapter Types ASP.NET C#
Today I was thinking of getting the MAC address of a particular System.. I googled but didnt found anything suitable..So After Trying a little I was able to write my own custom Working Code which could also display the Adapter Types being Used...
First of all we have to create a custom Utility Class inside the namespace Util as follows:
Note: Here is a catch over here .. You have to manually reference to System.Management.dll within your project..
Go to Project> Right Click>Add Reference>Go To .Net Tab and Select System.Management.dll
Code for Utility.cs: