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.
Note |
---|
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. |
Note |
---|
Unlike RemoveItem, this method only goes forward through the list from index 0 to index Count-1. |
Namespace: RSInterfaceCollections
Delphi |
public |
Parameters
Item
Type: IInterface
Type: Integer