Empty the database, discarding all records it contains.
             
    Namespace: 
   BerkeleyDBAssembly: libdb_dotnet53 (in libdb_dotnet53.dll) Version: 5.3.28.0
 Syntax
Syntax
| C# | 
|---|
| public uint Truncate( Transaction txn ) | 
| Visual Basic (Declaration) | 
|---|
| Public Function Truncate ( _ txn As Transaction _ ) As UInteger | 
| Visual C++ | 
|---|
| public: unsigned int Truncate( Transaction^ txn ) | 
Parameters
- txn
- Type: BerkeleyDB..::.Transaction
 txn is a Transaction object returned from BeginTransaction()()(); if the operation is part of a Berkeley DB Concurrent Data Store group, txn is a handle returned from BeginCDSGroup()()(); otherwise null.
Return Value
The number of records discarded from the database. Remarks
Remarks
             If txn is null and the operation occurs in a
             transactional database, the operation will be implicitly transaction
             protected.
             





