Show/Hide Toolbars

RiverSoftAVG Products Help

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

TInterfaceListPersistent.RemoveItem(IInterface,TDirection) Method

Scroll Prev Top Next More

Removes an interface from the list. The Direction parameter controls which direction the search should go: forward from 0 or backwards from Count-1.

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

RemoveItem 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.

Namespace: RSInterfaceCollections

Parameters

Item

Type: IInterface

Direction

Type: TDirection

Return Value

Type: Integer

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb