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.
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.
string - Gets the unique identifier for the network interface.string - Gets the name of the network interface.string - Gets a description of the network interface.OperationalStatus - Gets the operational status of the network interface.NetworkInterfaceType - Gets the type of the network interface.long - Gets the current speed of the network interface in bits per second.bool - Gets a value indicating whether the network interface is configured for receive-only operation.bool - Gets a value indicating whether the network interface supports multicast transmissions.PhysicalAddress - Gets the physical (MAC) address of the network interface.IPInterfaceProperties - Gets IP properties for the network interface.IPStatisticsBase - Gets IP statistics for the network interface.IPv4Statistics - Gets IPv4 statistics for the network interface.IPv6Statistics - Gets IPv6 statistics for the network interface.static NetworkInterface[] - Retrieves all network interfaces on the local computer.
bool - Returns true if the interface is a loopback interface.
bool - Returns true if the interface is a tunnel interface.
bool - Returns true if the interface is an Ethernet interface.
bool - Returns true if the interface is a wireless interface.
OperationalStatus EnumerationRepresents the operational status of a network interface.
NetworkInterfaceType EnumerationRepresents the type of a network interface.