NetworkHelperParseIPAddressElements Method

Parses a comma-separated list of IP addresses and/or IP address ranges.

Namespace:  Dundas.BI.Utility
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
public static IList<Tuple<IPAddress, IPAddress>> ParseIPAddressElements(
	string text
)

Parameters

text
Type: SystemString
The list of IP addresses and/or IP address ranges.

Return Value

Type: IListTupleIPAddress, IPAddress
A list of tuples representing the start/end of each IP address range.
Exceptions
ExceptionCondition
FormatExceptionThere was an error parsing one or more elements.
Remarks
The format of text is a comma-separated string containing any combination of IP addresses and/or IP address ranges. An IP address range may be specified using CIDR notation (e.g. 203.0.113.0/24) or as two addresses separated by a hyphen (e.g. 203.0.113.0-203.0.113.255).
See Also