Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
BTreeDatabaseConfig..::.BTreeCompare Field
BTreeDatabaseConfig Class See Also

The Btree key comparison function.

Namespace: BerkeleyDB
Assembly: libdb_dotnet48 (in libdb_dotnet48.dll) Version: 4.8.24.0

# Syntax

C#
    public EntryComparisonDelegate BTreeCompare

Visual Basic (Declaration)
    Public BTreeCompare As EntryComparisonDelegate

Visual C++
    public:
    EntryComparisonDelegate^ BTreeCompare

# Remarks

The comparison function is called whenever it is necessary to compare a key specified by the application with a key currently stored in the tree.

If no comparison function is specified, the keys are compared lexically, with shorter keys collating before longer keys.

If the database already exists, the comparison function must be the same as that historically used to create the database or corruption can occur.

# See Also

BTreeDatabaseConfig Class
BerkeleyDB Namespace