Restore transactions that were prepared, but not yet resolved at the time of the system shut down or crash, to their state prior to the shut down or crash, including any locks previously held.

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


public PreparedTransaction[] Recover(
	int count,
	bool resume
Visual Basic (Declaration)
Public Function Recover ( _
	count As Integer, _
	resume As Boolean _
) As PreparedTransaction()
Visual C++
array<PreparedTransaction^>^ Recover(
	int count, 
	bool resume


Type: System..::.Int32
The maximum number of PreparedTransaction objects to return.
Type: System..::.Boolean
If true, continue returning a list of prepared, but not yet resolved transactions, starting where the last call to Recover left off. If false, begins a new pass over all prepared, but not yet completed transactions, regardless of whether they have already been returned in previous calls to Recover.

Return Value

A list of the prepared transactions


Calls to Recover from different threads of control should not be intermixed in the same environment.

See Also