Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCIpRangeSet::IsRangeIntersect[C++]

FPCIpRangeSet.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* pfIsIpInSet
);

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.
pfIsIpInSet
[out] Pointer to a Boolean variable that is set on return to VARIANT_TRUE if the specified IP address range intersects any of the IP address ranges in the collection, or to VARIANT_FALSE if the specified IP address range does not intersect any of the IP address ranges in the collection.

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.
[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 is set to True if the specified IP address range intersects any of the IP address ranges in the collection, or to False if the specified IP address range does not intersect any of the IP address ranges in the collection. If the call is unsuccessful, 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

FPCIpRangeSet