Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCIpRangeSet::Add[C++]

FPCIpRangeSet.Add [Visual Basic]

[C++]

The Add method creates a new FPCIpRangeEntry object in the collection and returns a reference to it. The Save method must be called to save the new FPCIpRangeEntry object to persistent storage.

HRESULT Add(
  BSTR Ip_From,
  BSTR Ip_To,
  IFPCIpRangeEntry** ppNewObj
);

Parameters

Ip_From
[in] Required. BSTR that specifies the lower bound of the IP address range.
Ip_To
[in] Required. BSTR that specifies the upper bound of the IP address range.
ppNewObj
[out] Address of an interface pointer that on return points to the new IFPCIpRangeEntry interface created.

Return Values

This method can return one of the following:

[Visual Basic]

The Add method creates a new FPCIpRangeEntry object in the collection and returns a reference to it. The Save method must be called to save the new FPCIpRangeEntry object to persistent storage.

Function Add( _
  ByVal Ip_From As String, _
  ByVal Ip_To As String _
) As FPCIpRangeEntry

Parameters

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

Return Values

This method returns a reference to the FPCIpRangeEntry object if 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

FPCIpRangeSet