Insert the specified key/data pair into the database, unless a
key/data pair comparing equally to it already exists in the
database.
Namespace:
BerkeleyDBAssembly: libdb_dotnet48 (in libdb_dotnet48.dll) Version: 4.8.24.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
Exception | Condition |
---|---|
BerkeleyDB..::.KeyExistException | Thrown if a matching key/data pair already exists in the database. |