Move the cursor to the specified key/data pair of the database. The cursor is positioned to a key/data pair if both the key and data match the values provided on the key and data parameters.

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


public bool Move(
	KeyValuePair<DatabaseEntry, KeyValuePair<DatabaseEntry, DatabaseEntry>> pair,
	bool exact,
	LockingInfo info
Visual Basic (Declaration)
Public Function Move ( _
	pair As KeyValuePair(Of DatabaseEntry, KeyValuePair(Of DatabaseEntry, DatabaseEntry)), _
	exact As Boolean, _
	info As LockingInfo _
) As Boolean
Visual C++
bool Move(
	KeyValuePair<DatabaseEntry^, KeyValuePair<DatabaseEntry^, DatabaseEntry^>> pair, 
	bool exact, 
	LockingInfo^ info


Type: System.Collections.Generic..::.KeyValuePair<(Of <(DatabaseEntry, KeyValuePair<(Of <(DatabaseEntry, DatabaseEntry>)>)>)>)
The key/data pair at which to position the cursor.
Type: System..::.Boolean
If false and in a database configured for sorted duplicates, position the cursor at the smallest data value which is greater than or equal to the value provided by pair.Value (as determined by the comparison function). Otherwise, require the given key and data to match the key and data in the database exactly.
Type: BerkeleyDB..::.LockingInfo
The locking behavior to use.

Return Value

True if the cursor was positioned successfully, false otherwise.


If positioning the cursor fails, Current will contain an empty KeyValuePair<(Of <(TKey, TValue>)>).

If this flag is specified on a database configured without sorted duplicate support, the value of exact is ignored.

See Also