Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPInformation.PrefixLength | prefixLength property

Applies to Windows and Windows Phone

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

Syntax


var prefixLength = ipInformation.prefixLength;

Property value

Type: IReference<Byte> [JavaScript/C++] | System.Nullable<Byte> [.NET]

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Connectivity
Windows::Networking::Connectivity [C++]

Metadata

Windows.winmd

See also

IPInformation
IReference(Byte)

 

 

Show:
© 2014 Microsoft