Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCIpRangeEntry::SetIps[C++]

FPCIpRangeEntry.SetIps [Visual Basic]

[C++]

The SetIps method sets the lower and upper bounds of the IP address range.

HRESULT SetIps(
  BSTR newFrom,
  BSTR newTo
);

Parameters

newFrom
[in] String value that specifies the lower bound of the IP range.
newTo
[in] String value that specifies the upper bound of the IP range.

Return Values

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

Remarks

This method modifies the IP_From and IP_To properties. The lower and upper bounds of the IP address range are initially set by the values passed to the IP_From and IP_To parameters of the Add method of an FPCIpRangeSet collection when the object is created.

[Visual Basic]

The SetIps method sets the lower and upper bounds of the IP address range.

Sub SetIps( _
  ByVal newFrom As String, _
  ByVal newTo As String _
)

Parameters

newFrom
[in] String value that specifies the lower bound of the IP range.
newTo
[in] String value that specifies the upper bound of the IP range.

Return Values

This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Remarks

This method modifies the IP_From and IP_To properties. The lower and upper bounds of the IP address range are initially set by the values passed to the IP_From and IP_To parameters of the Add method of an FPCIpRangeSet collection when the object is created.

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

FPCIpRangeEntry