IPInformation IPInformation IPInformation IPInformation Class

Represents the association between an IP address and an adapter on the network.

Syntax

Declaration

public sealed class IPInformationpublic sealed class IPInformationPublic NotInheritable Class IPInformation

Properties summary

Retrieves the network adapter associated with the IP address.

Retrieves the length of the prefix, or network part of the IP address.

Properties

  • NetworkAdapter
    NetworkAdapter
    NetworkAdapter
    NetworkAdapter

    Retrieves the network adapter associated with the IP address.

    public NetworkAdapter NetworkAdapter { get; }public NetworkAdapter NetworkAdapter { get; }Public ReadOnly Property NetworkAdapter As NetworkAdapter

    Property Value

  • PrefixLength
    PrefixLength
    PrefixLength
    PrefixLength

    Retrieves the length of the prefix, or network part of the IP address.

    public IReference<byte> PrefixLength { get; }public IReference<byte> PrefixLength { get; }Public ReadOnly Property PrefixLength As IReference<byte>

    Property Value

    • The length, in bits, of the prefix or network part.

    Remarks

    For a unicast IPv4 address, any value greater than 32 is an illegal value. For a unicast IPv6 address, any value greater than 128 is an illegal value. A value of 255 is commonly used to represent an illegal value.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Networking.Connectivity.dll