RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAggregatedObject::_AddRef Method

Implements the IInterface System::TAggregatedObject::_AddRef method.

Pascal
function _AddRef: Integer; stdcall;
C++
__stdcall Integer _AddRef();

Do not call the protected System::TAggregatedObject::_AddRef method directly. System::TAggregatedObject::_AddRef is called through the interface to indicate that another object is using the interfaced object's interface pointer. When the other object is through with the interface, it calls System::TInterfacedObject::_Release through the same interface. This allows the interfaced object to free itself when it is no longer used (when the reference count goes to zero). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!