Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCAddressRange::SetIps[C++]

FPCAddressRange.SetIps [Visual Basic]

[C++]

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

HRESULT SetIps(
  BSTR Ip_From,
  BSTR Ip_To
);

Parameters

Ip_From
[in] BSTR that specifies the lower bound of the IP address range.
Ip_To
[in] BSTR that specifies the upper bound of the IP address 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 the IFPCAddressRanges interface when the object is created.

[Visual Basic]

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

Sub SetIps( _
  ByVal Ip_From As String, _
  ByVal Ip_To As String _
)

Parameters

Ip_From
[in] String that specifies the lower bound of the IP address range.
Ip_To
[in] String 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 the FPCAddressRanges 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

FPCAddressRange