IObjectContainer.Deactivate Method
deactivates a stored object by setting all members to
NULL
.
Parameters
-
obj
- the object to be deactivated.
-
depth
- the member depth to which deactivate is to cascade.
Remarks
deactivates a stored object by setting all members to
NULL
.
Primitive types will be set to their default values.
Examples: ../com/db4o/samples/activate. Calls to this method save memory. The method has no effect, if the passed object is not stored in the
IObjectContainer
.
Deactivate()
triggers the callback method
ObjectOnDeactivate .
Be aware that calling this method with a depth parameter greater than 1 sets members on member objects to null. This may have side effects in other places of the application.
See Also
IObjectContainer Interface | Db4objects.Db4o Namespace | ObjectCallbacks | Why activation?