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

deletes a stored object permanently.

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

Syntax

Visual Basic (Declaration)
Sub Delete ( _
	obj As Object _
)
C#
void Delete (
	Object obj
)
Visual C++
void Delete (
	Object^ obj
)

Parameters

obj
System.Object
the object to be deleted from the
 Copy imageCopy Code
IObjectContainer
.

Remarks

deletes a stored object permanently.

Note that this method has to be called for every single object individually. Delete does not recurse to object members. Simple and array member types are destroyed.

Object members of the passed object remain untouched, unless cascaded deletes are configured for the class or for one of the member fields .

The method has no effect, if the passed object is not stored in the
 Copy imageCopy Code
IObjectContainer
.

A subsequent call to
 Copy imageCopy Code
Set()
with the same object newly stores the object to the
 Copy imageCopy Code
IObjectContainer
.

 Copy imageCopy Code
Delete()
triggers the callback method objectOnDelete which can be also used for cascaded deletes.

See Also

Db4objects.Db4o.Config.ObjectClass.CascadeOnDelete
Db4objects.Db4o.Config.ObjectField.CascadeOnDelete
Using callbacks