db4o

IContextIDMapping.MappedID Method 

Returns a previously registered mapping ID for the given ID if it exists.

int MappedID(
   int origID,
   bool lenient
);

Parameters

origID
The original ID
lenient
If true, lenient mode will be used for lookup, strict mode otherwise.

Return Value

The mapping ID for the given original ID or 0, if none has been registered.

Remarks

Returns a previously registered mapping ID for the given ID if it exists. If lenient mode is set to true, will provide the mapping ID for the next smaller original ID a mapping exists for. Otherwise returns 0.

See Also

IContextIDMapping Interface | Db4objects.Db4o.Defragment Namespace