System.Net.NetworkInformation.IPGlobalStatistics.NumberOfIPAddresses Property

Gets the number of Internet Protocol (IP) addresses assigned to the local computer.

Syntax

public abstract int NumberOfIPAddresses { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The data returned by this property includes addresses of pseudo network interfaces such as tunnels.

If this instance was obtained by calling IPGlobalProperties.GetIPv4GlobalStatistics, this property returns the number of IPv4 addresses assigned to the local computer. Similarly, if this instance was obtained by calling IPGlobalProperties.GetIPv6GlobalStatistics, this property returns the number of IPv6 addresses assigned to the local computer.

Requirements

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