Soap.InvokeRegistry.THeaderList.OwnsObjects

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property  OwnsObjects: Boolean read GetOwnsObjects write SetOwnsObjects;

C++

__property bool OwnsObjects = {read=GetOwnsObjects, write=SetOwnsObjects, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Soap.InvokeRegistry.pas
Soap.InvokeRegistry.hpp
Soap.InvokeRegistry THeaderList

Description

Allows THeaderList to free objects when they the list is cleared or destroyed.

OwnsObjects allows THeaderList to control the memory of its TSOAPHeader objects. If OwnsObjects is true,

calling Clear frees all the headers in the list in addition to emptying the list.

freeing the THeaderList object frees all the objects in the list in addition to destroying the THeaderList itself.

Note: Even if OwnsObjects is true, the Extract method removes objects from the list without freeing them.

See Also