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
)
Public Shared Function ParseIPAddressElements (
text As String
) As IList(Of Tuple(Of IPAddress, IPAddress))
public:
static IList<Tuple<IPAddress^, IPAddress^>^>^ ParseIPAddressElements(
String^ text
)
static member ParseIPAddressElements :
text : string -> IList<Tuple<IPAddress, IPAddress>>
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 Exception | Condition |
---|
FormatException | There 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