Write to the external file accessed by the database stream.
Namespace:
BerkeleyDBAssembly: libdb_dotnet62 (in libdb_dotnet62.dll) Version: 6.2.32.0
Syntax
| C# |
|---|
public bool Write( DatabaseEntry data, long offset ) |
| Visual Basic (Declaration) |
|---|
Public Function Write ( _ data As DatabaseEntry, _ offset As Long _ ) As Boolean |
| Visual C++ |
|---|
public: bool Write( DatabaseEntry^ data, long long offset ) |
Parameters
- data
- Type: BerkeleyDB..::.DatabaseEntry
The DatabaseEntry containing the data to write. into the file.
- offset
- Type: System..::.Int64
The position in bytes in the file where the writing starts.
Return Value
True if the writing succeeds and false otherwise.
Exceptions
| Exception | Condition |
|---|---|
| BerkeleyDB..::.DatabaseException | Thrown if there is any failure. |