Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCReadOnlyIpRangeSet::IsRangeIntersect[C++]

FPCReadOnlyIpRangeSet.IsRangeIntersect [Visual Basic]

[C++]

The IsRangeIntersect method determines whether the specified IP address range intersects any of the IP address ranges in the collection.

HRESULT IsRangeIntersect(
  BSTR IpFrom,
  BSTR IpTo,
  VARIANT_BOOL* pIsRangeIntersect
);

Parameters

IpFrom
[in] Required. BSTR that specifies the lower bound of the IP address range.
IpTo
[in] Required. BSTR that specifies the upper bound of the IP address range.
pIsRangeIntersect
[out] Pointer to a Boolean variable that is set on return to VARIANT_TRUE if the IP address range intersects any of the IP address ranges in the collection, or to VARIANT_FALSE if the IP address range does not intersect any of the IP address ranges in the collection.

Return Values

This method can return one of the following:

[Visual Basic]

The IsRangeIntersect method determines whether the specified IP address range intersects any of the IP address ranges in the collection.

Function IsRangeIntersect( _
  ByVal IpFrom As String, _
  ByVal IpTo As String _
) As Boolean

Parameters

IpFrom
[in] Required. String that specifies the lower bound of the IP address range.
IpTo
[in] Required. String that specifies the upper bound of the IP address range.

Return Values

This method returns a Boolean value that indicates whether the IP address range intersects with IP addresses that are in use if the call is successful. Otherwise, an error is raised that can be intercepted by using an error handler.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCReadOnlyIpRangeSet