How to get the name of the network card

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Misha

    How to get the name of the network card

    How do i get the name of the network card in C#?
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: How to get the name of the network card

    Misha,

    I would use the classes in the System.Manageme nt namespace to access the
    WMI providers for the network adapter. Basically, you want to do a query
    for the Win32_NetworkAd apter instance which corresponds to the adapter.
    Then, you can get the NetConnectionID property which will give you the
    display name for that adapter.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Misha" <m_Seldin@mail. ru> wrote in message
    news:31c282bb.0 310220702.f739c c2@posting.goog le.com...[color=blue]
    > How do i get the name of the network card in C#?[/color]


    Comment

    Working...