System.Classes.TInterfacedPersistent._AddRef
Delphi
function _AddRef: Integer; stdcall;
C++
int __stdcall _AddRef();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Classes.pas System.Classes.hpp |
System.Classes | TInterfacedPersistent |
Description
Increments the reference count for the interfaced object's interface.
_AddRef implements the IInterface method, _AddRef, which increments the reference count of an interface and returns the current reference count.
If the interfaced persistent object has an Owner and that owner supports an interface, then _AddRef simply calls the _AddRef method of the Owner. Otherwise, it simply returns –1.