ISphinxContext.AddOwnership Method
Adds an object to the context for ownership management.
Remarks
The AddOwnership
method registers an object with the context to ensure that its lifecycle is managed properly. When the context goes out of scope, all objects added to its ownership are also destroyed, ensuring proper cleanup.
Syntax
Unit: Sphinx.Context
procedure ISphinxContext.AddOwnership(Obj: TObject); virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
Obj | TObject | The object to be managed by the context. |