IPInformation.PrefixLength Property

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

Syntax

public:
property IReference<unsigned char>^ PrefixLength {
         IReference<unsigned char>^ get ();
}  

Property value

Type: IReference<Byte

The length, in bytes, 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.

Requirements

Namespace: Windows.Networking.Connectivity

Metadata: windows.winmd

See also

Reference

IPInformation Class

IPInformation Members

Windows.Networking.Connectivity Namespace