Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > RSInterfaceCollections > Classes > TInterfaceListPersistent > Methods

TInterfaceListPersistent.Remove(IInterface) Method

Scroll Prev Top Next More

Removes an interface from the list.

Call Remove to remove an interface from the list. For multithreading purposes, the list is locked before the removing operation begins and unlocked afterwards.

Remove returns either the index of the removed interface or –1, if the interface was not found.

noteNote

The interface list only stores pointers to the interfaces. Removing an interface from the list decreases the interfaces reference count by 1. The interface is freed only if there are no more references to it.

noteNote

Unlike RemoveItem, this method only goes forward through the list from index 0 to index Count-1.

Namespace: RSInterfaceCollections

Parameters

Item

Type: IInterface

Return Value

Type: Integer

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb