Szerkesztés

Megosztás a következőn keresztül:


IPGlobalStatistics.NumberOfIPAddresses Property

Definition

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

public:
 abstract property int NumberOfIPAddresses { int get(); };
public abstract int NumberOfIPAddresses { get; }
member this.NumberOfIPAddresses : int
Public MustOverride ReadOnly Property NumberOfIPAddresses As Integer

Property Value

An Int64 value that indicates the number of IP addresses assigned to the address family (Internet Protocol version 4 or Internet Protocol version 6) described by this object.

Remarks

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

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

Applies to