The Hash key comparison function.
Namespace:
BerkeleyDBAssembly: libdb_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.32.0
Syntax
C# |
---|
public EntryComparisonDelegate HashComparison |
Visual Basic (Declaration) |
---|
Public HashComparison As EntryComparisonDelegate |
Visual C++ |
---|
public: EntryComparisonDelegate^ HashComparison |
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.