RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THeaderList.OwnsObjects Property

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

Pascal
property OwnsObjects: Boolean;
C++
__property Boolean OwnsObjects;

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.
 

 

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