System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces Method

Returns objects that describe the network interfaces on the local computer.

Syntax

public static NetworkInterface[] GetAllNetworkInterfaces ()

Returns

A System.Net.NetworkInformation.NetworkInterface array that contains objects that describe the available network interfaces, or an empty array if no interfaces are detected.

Remarks

The network interfaces on a computer provide network connectivity. Network interfaces are also known as network adapters.

Requirements

Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0