Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCIpRangeSet::IsIpInSet[C++]

FPCIpRangeSet.IsIpInSet [Visual Basic]

[C++]

The IsIpInSet method determines whether the specified IP address is included in any of the IP address ranges in the collection.

HRESULT IsIpInSet(
  BSTR IpStr,
  VARIANT_BOOL* pfIsIpInSet
);

Parameters

IpStr
[in] Required. BSTR that specifies the IP address.
pfIsIpInSet
[out] Pointer to a Boolean variable that is set on return to VARIANT_TRUE if the specified IP address is included in any IP address range in the collection, or to VARIANT_FALSE if the specified IP address is not included in any IP address range in the collection.

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.

[Visual Basic]

The IsIpInSet method determines whether the specified IP address is included in any of the IP address ranges in the collection.

Function IsIpInSet( _
  ByVal IpStr As String _
) As Boolean

Parameters

IpStr
[in] Required. String that specifies the IP address.

Return Values

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