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
HashDatabaseConfig..::.HashFunction Field
HashDatabaseConfig Class See Also

A user-defined hash function; if no hash function is specified, a default hash function is used.

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

# Syntax

C#
    public HashFunctionDelegate HashFunction

Visual Basic (Declaration)
    Public HashFunction As HashFunctionDelegate

Visual C++
    public:
    HashFunctionDelegate^ HashFunction

# Remarks

Because no hash function performs equally well on all possible data, the user may find that the built-in hash function performs poorly with a particular data set.

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

# See Also

HashDatabaseConfig Class
BerkeleyDB Namespace