[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

deactivates a stored object by setting all members to
 Copy imageCopy Code
NULL
.

Namespace: Db4objects.Db4o
Assembly:   Db4objects.Db4o (in Db4objects.Db4o.dll)

Syntax

Visual Basic (Declaration)
Sub Deactivate ( _
	obj As Object, _
	depth As Integer _
)
C#
void Deactivate (
	Object obj,
	int depth
)
Visual C++
void Deactivate (
	Object^ obj, 
	int depth
)

Parameters

obj
System.Object
the object to be deactivated.
depth
System.Int32
the member depth to which deactivate is to cascade.

Remarks

deactivates a stored object by setting all members to
 Copy imageCopy Code
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
 Copy imageCopy Code
IObjectContainer
.

 Copy imageCopy Code
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

Using callbacks
Why activation?