db4o

Defragment.Defrag Method (DefragmentConfig, IDefragmentListener)

Renames the file at the configured original path to the configured backup path and then builds a defragmented version of the file in the original place.

public static void Defrag(
   DefragmentConfig config,
   IDefragmentListener listener
);

Parameters

config
The configuration for this defragmentation run.
listener
A listener for status notifications during the defragmentation process.

Remarks

Renames the file at the configured original path to the configured backup path and then builds a defragmented version of the file in the original place.

Exceptions

Exception Type Condition
IOException if the original file cannot be moved to the backup location

See Also

Defragment Class | Db4objects.Db4o.Defragment Namespace | Defragment.Defrag Overload List