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

binds an object to an internal object ID.

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

Syntax

Visual Basic (Declaration)
Sub Bind ( _
	obj As Object, _
	id As Long _
)
C#
void Bind (
	Object obj,
	long id
)
Visual C++
void Bind (
	Object^ obj, 
	long long id
)

Parameters

obj
System.Object
the object that is to be bound
id
System.Int64
the internal id the object is to be bound to

Remarks

binds an object to an internal object ID.

This method uses the ID parameter to load the correspondig stored object into memory and replaces this memory reference with the object parameter. The method may be used to replace objects or to reassociate an object with it's stored instance after closing and opening a database file. A subsequent call to set(Object) is necessary to update the stored object.

Requirements:
- The ID needs to be a valid internal object ID, previously retrieved with getID(Object) .
- The object parameter needs to be of the same class as the stored object.

See Also