Delen via


IPInformation.PrefixLength Property

Definition

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

public:
 property IReference<byte> ^ PrefixLength { IReference<byte> ^ get(); };
IReference<byte> PrefixLength();
public System.Nullable<byte> PrefixLength { get; }
var iReference = iPInformation.prefixLength;
Public ReadOnly Property PrefixLength As Nullable(Of 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.

Applies to

See also