Open this page in the API Guide

INetworkHelperService.IsIPAddressInRange Method

Gets a value indicating whether an IP address is within at least one of the specified ranges.

Namespace:  Dundas.BI.Services
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
bool IsIPAddressInRange(
	IPAddress ipAddress,
	ICollection<Tuple<IPAddress, IPAddress>> ranges
)

Parameters

ipAddress
Type: System.Net.IPAddress
The IP address to check.
ranges
Type: System.Collections.Generic.ICollection<Tuple<IPAddress, IPAddress>>
The list of IP address ranges.

Return Value

Type: Boolean
true if the specified IP address falls within one or more of the specified ranges; otherwise, false.
See Also