IFPCEEReadOnlyIpRangeSet::IsRangeContained method

Applies to: desktop apps only

The IsRangeContained method determines whether the specified IP address range is contained within any of the IP address ranges in the collection.

Syntax

HRESULT IsRangeContained(
  [in]   BSTR IpFrom,
  [in]   BSTR IpTo,
  [out]  VARIANT_BOOL *pIsRangeContained
);
FPCReadOnlyIpRangeSet.IsRangeContained( _
  ByVal IpFrom As String, _
  ByVal IpTo As String, _
  ByRef pIsRangeContained As VARIANT_BOOL _
) As Boolean

Parameters

  • IpFrom [in]

    C++ Required. BSTR that specifies the lower bound of the IP address range.
    VB Required. String that specifies the lower bound of the IP address range.
  • IpTo [in]

    C++ Required. BSTR that specifies the upper bound of the IP address range.
    VB Required. String that specifies the upper bound of the IP address range.
  • pIsRangeContained [out]
    Pointer to a Boolean variable that is set on return to VARIANT_TRUE if the IP address range is contained within any of the IP address ranges in the collection, or to VARIANT_FALSE if the IP address range is not contained within any of the IP address ranges in the collection.

Return value

C++

This method can return one of the following:

  • S_OK, indicating that the operation succeeded.
  • An error code, indicating that the operation failed.

VB

This method returns a Boolean value that is set to True if the specified IP address range is contained within any of the IP address ranges in the collection, or to False if the specified IP address range is not contained within 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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCReadOnlyIpRangeSet

 

 

Build date: 7/12/2010