IsRangeContained Method of the IFPCEEReadOnlyIpRangeSet Interface

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

[C++]

Syntax

HRESULT IsRangeContained(
  [in]   BSTR IpFrom,
  [in]   BSTR IpTo,
  [out]  VARIANT_BOOL* pIsRangeContained
);

Parameters

IpFrom
Required. BSTR that specifies the lower bound of the IP address range.
IpTo
Required. BSTR that specifies the upper bound of the IP address range.
pIsRangeContained

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

This method can return one of the following:

[Visual Basic]

Syntax

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

Parameters

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

Return Value

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

Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCReadOnlyIpRangeSet


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.

508 Resource Limit Is Reached

Resource Limit Is Reached

The website is temporarily unable to service your request as it exceeded resource limit. Please try again later.