Insert the specified key/data pair into the database, unless a key/data pair comparing equally to it already exists in the database.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet52 (in libdb_dotnet52.dll) Version: 5.2.28.0

Syntax

C#
public void AddUnique(
	KeyValuePair<DatabaseEntry, DatabaseEntry> pair
)
Visual Basic (Declaration)
Public Sub AddUnique ( _
	pair As KeyValuePair(Of DatabaseEntry, DatabaseEntry) _
)
Visual C++
public:
void AddUnique(
	KeyValuePair<DatabaseEntry^, DatabaseEntry^> pair
)

Parameters

pair
Type: System.Collections.Generic..::.KeyValuePair<(Of <(DatabaseEntry, DatabaseEntry>)>)
The key/data pair to be inserted

Exceptions

ExceptionCondition
BerkeleyDB..::.KeyExistException Thrown if a matching key/data pair already exists in the database.

See Also