Thetype exposes the following members.
Constructs a subnet from an IPv4 address and prefix length.
Constructs a subnet from an IPv4 address and subnet mask.
Returns the CIDR address.
Returns the number of IP addresses within the subnet.
Returns the 0.0.0.0/0 subnet which includes all public and private IP addresses.
Returns the first IP address in the subnet.
Returns the first usable IP address in the subnet.
Returns the last IP address in the subnet.
Returns the subnet mask.
Returns the first address after the subnet.
Returns the prefix length in bits.
Determines whether an IP address is within the subnet.
Determines whether a subnet is completely contained within the current subnet.
Determines whether the specified object is equal to the current object.(Overrides ObjectEquals(Object).)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function.(Overrides ObjectGetHashCode.)
Gets the Type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
Attempts to normalize a network CIDR string by ensuring that the address actually fits the mask.
Determines whether this subnet overlaps another.
Parses a subnet from CIDR notation in the form of ip-address/prefix, where prefix is the network prefix length in bits.
Returns a string that represents the current object.(Overrides ObjectToString.)
Attempts to parse a subnet from CIDR notation in the form of ip-address/prefix, where prefix is the network prefix length in bits.
Compares twoinstances for equality.
|(NetworkCidr to String)|
Implicitly casts ainto a string.
Compares twoinstances for inequality.
This is generally used for describing an IP subnet. See the following Wikipedia article for more information.
|This class currently supports only IPv4 addresses.|