NetworkHelperIPRangeToCidr Method |
Converts an IP address range to CIDR notation.
Namespace: Dundas.BI.UtilityAssembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntaxpublic static IReadOnlyCollection<(IPAddress StartIP, byte NumBits)> IPRangeToCidr(
IPAddress startIP,
IPAddress endIP
)
Public Shared Function IPRangeToCidr (
startIP As IPAddress,
endIP As IPAddress
) As IReadOnlyCollection(Of (StartIP As IPAddress, NumBits As Byte))
public:
static IReadOnlyCollection<ValueTuple<IPAddress^, unsigned char>>^ IPRangeToCidr(
IPAddress^ startIP,
IPAddress^ endIP
)
static member IPRangeToCidr :
startIP : IPAddress *
endIP : IPAddress -> IReadOnlyCollection<ValueTuple<IPAddress, byte>> Parameters
- startIP IPAddress
- The starting value of the IP address range.
- endIP IPAddress
- The ending value of the IP address range.
Return Value
IReadOnlyCollectionValueTupleIPAddress,
ByteA collection of IP addresses and the corresponding number of bits to consider, collectively representing the specified IP address range.
Exceptions
See Also