IPInformation IPInformation IPInformation IPInformation Class


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

public : sealed class IPInformation : IIPInformation
public sealed class IPInformation : IIPInformation
Public NotInheritable Class IPInformation Implements IIPInformation
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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
var networkAdapter = ipInformation.networkAdapter;
NetworkAdapter NetworkAdapter NetworkAdapter NetworkAdapter

The associated network adapter.

See Also

PrefixLength PrefixLength PrefixLength PrefixLength

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

public : IReference<byte> PrefixLength { get; }
public Nullable<byte> PrefixLength { get; }
Public ReadOnly Property PrefixLength As Nullable<byte>
var nullable = ipInformation.prefixLength;
IReference<byte> Nullable<byte> Nullable<byte> Nullable<byte>

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


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.

See Also