<xml></xml>

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

Berkeley DB .NET API Documentation
SecondaryBTreeDatabaseConfig..::.Duplicates Field
SecondaryBTreeDatabaseConfig Class See Also Send Feedback

Policy for duplicate data items in the database. Allows a key/data pair to be inserted into the database even if the key already exists.

Namespace: BerkeleyDB
Assembly: libdb_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.32.0

# Syntax

C#

    public DuplicatesPolicy Duplicates

Visual Basic (Declaration)

    Public Duplicates As DuplicatesPolicy

Visual C++

    public:
    DuplicatesPolicy Duplicates

# Remarks

The ordering of duplicates in the database for UNSORTED is determined by the order of insertion, unless the ordering is otherwise specified by use of a cursor operation or a duplicate sort function. The ordering of duplicates in the database for SORTED is determined by the duplicate comparison function. If the application does not specify a comparison function using DuplicateCompare, a default lexical comparison is used.

SORTED is preferred to UNSORTED for performance reasons. UNSORTED should only be used by applications wanting to order duplicate data items manually.

If the database already exists, the value of Duplicates must be the same as the existing database or an error is returned.

It is an error to specify UseRecordNumbers and anything other than NONE.

# See Also

SecondaryBTreeDatabaseConfig Class
BerkeleyDB Namespace