IPGlobalStatistics.NumberOfInterfaces Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the number of network interfaces.

Namespace:   System.Net.NetworkInformation
Assembly:  System (in System.dll)

public abstract int NumberOfInterfaces { get; }

Property Value

Type: System.Int32

An Int64 value containing the number of network interfaces for the address family used to obtain this IPGlobalStatistics instance.

The data returned by this property includes loopback interfaces.

Network interfaces are also known as network adapters.

.NET Framework
Available since 2.0
Return to top
Show: