Insert the specified key/data pair into the database.

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

Syntax

C#
public void Add(
	KeyValuePair<DatabaseEntry, DatabaseEntry> pair,
	Cursor..::.InsertLocation loc
)
Visual Basic (Declaration)
Public Sub Add ( _
	pair As KeyValuePair(Of DatabaseEntry, DatabaseEntry), _
	loc As Cursor..::.InsertLocation _
)
Visual C++
public:
void Add(
	KeyValuePair<DatabaseEntry^, DatabaseEntry^> pair, 
	Cursor..::.InsertLocation loc
)

Parameters

pair
Type: System.Collections.Generic..::.KeyValuePair<(Of <(DatabaseEntry, DatabaseEntry>)>)
The key/data pair to be inserted
loc
Type: BerkeleyDB..::.Cursor..::.InsertLocation
If the key already exists in the database and no duplicate sort function has been specified, specify whether the inserted data item is added as the first or the last of the data items for that key.

See Also