RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode._AddRef Method

Increments the reference count for this node.

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

__AddRef implements the IInterface or IUnknown method that is called when an application obtains a reference to this node's interface pointer. __AddRef increments the RefCount property. In addition, to ensure that the document object is alive, it also increments the reference count for the owning document. 

When the caller is through with the interface, it calls _Release. This allows the node to free itself when it is no longer used (when the reference count goes to zero). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!