System.Net.NetworkInformation.NetworkInterface

Namespace: System.Net.NetworkInformation

Provides information about network interfaces on the local computer. Network interfaces represent network adapters, such as Ethernet cards and Wi-Fi adapters.

Overview

The NetworkInterface class allows you to query detailed information about each network interface installed on the system. This includes its status, type, MAC address, IP addresses, statistics (like bytes sent and received), and more.

Properties

Methods

Enumerations and Types

OperationalStatus Enumeration

Represents the operational status of a network interface.

NetworkInterfaceType Enumeration

Represents the type of a network interface.