Share via


IFPCIpRangeSet::Remove method

Applies to: desktop apps only

The Remove method removes the FPCIpRangeEntry object specified by its index or by the upper and lower bounds of its IP address range from the collection.

Syntax

HRESULT Remove(
  [in]            VARIANT IndexOrIP_From,
  [in, optional]  BSTR IP_To
);
FPCIpRangeSet.Remove( _
  ByVal IndexOrIP_From As Variant, _
  [ ByVal IP_To As String ] _
)

Parameters

  • IndexOrIP_From [in]
    Required. One-based index of the object to remove or the lower bound of its IP address range.

  • IP_To [in, optional]
    Upper bound of the IP address range of the object to remove. This parameter must be specified when the IndexOrIP_From parameter is set to the lower bound of an IP address range. The default value is NULL.

Return value

C++

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

VB

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

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCIpRangeSet

 

 

Build date: 7/12/2010