Soap.InvokeRegistry.TDataContext.AddObjectToDestroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddObjectToDestroy(Obj: TObject);

C++

void __fastcall AddObjectToDestroy(System::TObject* Obj);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Soap.InvokeRegistry.pas
Soap.InvokeRegistry.hpp
Soap.InvokeRegistry TDataContext

Description

Stores an object that can be freed when the data context is finished.

Call AddObjectToDestroy to add an object instance to the list of temporary objects that TDataContext maintains. When the TDataContext instance is freed, it frees all the objects in this list of temporary objects.

Note: TDataContext does not provide access to this list. The caller must keep a reference to the object for use while the TDataContext instance exists.

See Also