This class represents an IP prefix, i.e., a contiguous block of IP addresses aligned on a
power of two boundary (also known as an "IP subnet").
See Also:
IpPrefix Members
Syntax
Remarks
This class represents an IP prefix, i.e., a contiguous block of IP addresses aligned on a
power of two boundary (also known as an "IP subnet"). A prefix is specified by two pieces of
information:
- A starting IP address (IPv4 or IPv6). This is the first IP address of the prefix.
- A prefix length. This specifies the length of the prefix by specifing the number of bits
in the IP address, starting from the most significant bit in network byte order, that
are constant for all addresses in the prefix.
For example, the prefix
192.0.2.0/24 covers the 256 IPv4 addresses from
192.0.2.0 to
192.0.2.255, inclusive, and the prefix
2001:db8:1:2 covers the 2^64 IPv6 addresses from
2001:db8:1:2:: to
2001:db8:1:2:ffff:ffff:ffff:ffff, inclusive.
Objects of this class are immutable.
[Android Documentation]
Requirements
Namespace: Android.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0