[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
, if the passed
object is not stored in this
.
returns the internal unique object ID.
Namespace: Db4objects.Db4o.Ext
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
Syntax
Visual Basic (Declaration) |
---|
Function GetID ( _ obj As Object _ ) As Long |
C# |
---|
long GetID ( Object obj ) |
Visual C++ |
---|
long long GetID ( Object^ obj ) |
Parameters
- obj
- System.Object
any object
Return Value
the associated internal ID or![]() | |
---|---|
0 |
![]() | |
---|---|
ObjectContainer |
Remarks
returns the internal unique object ID.
db4o assigns an internal ID to every object that is stored. IDs are guaranteed to be unique within one
.
An object carries the same ID in every db4o session. Internal IDs can
be used to look up objects with the very fast
getByID
method.
Internal IDs will change when a database is defragmented. Use Db4objects.Db4o.Ext.IExtObjectContainer.GetObjectInfo , Db4objects.Db4o.Ext.IObjectInfo.GetUUID and Db4objects.Db4o.Ext.IExtObjectContainer.GetByUUID for long-term external references to objects.
db4o assigns an internal ID to every object that is stored. IDs are guaranteed to be unique within one
![]() | |
---|---|
ObjectContainer |
Internal IDs will change when a database is defragmented. Use Db4objects.Db4o.Ext.IExtObjectContainer.GetObjectInfo , Db4objects.Db4o.Ext.IObjectInfo.GetUUID and Db4objects.Db4o.Ext.IExtObjectContainer.GetByUUID for long-term external references to objects.