Xml.XMLDoc.TXMLNode._AddRef

From RAD Studio API Documentation
Jump to: navigation, search


Delphi

function _AddRef: Integer; stdcall;

C++

HIDESBASE int __stdcall _AddRef();

Properties

Type Visibility Source Unit Parent
function protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNode

Description

Increments the reference count for this node.

__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).

See Also