CloseForceSyncEnv Method

Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
DatabaseEnvironment..::.CloseForceSyncEnv Method
DatabaseEnvironment Class See Also Send Feedback

Close the Berkeley DB environment, freeing any allocated resources, closing any open databases as well as underlying subsystems.

Namespace: BerkeleyDB
Assembly: libdb_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.25.0

# Syntax

C#
    public void CloseForceSyncEnv()

Visual Basic (Declaration)
    Public Sub CloseForceSyncEnv

Visual C++
    public:
    void CloseForceSyncEnv()

# Remarks

The object should not be closed while any other handle that refers to it is not yet closed; for example, database environment handles must not be closed while transactions in the environment have not yet been committed or aborted. Calling CloseForceSyncEnv flushes all memory mapped environment regions before closing the environment.

# See Also

DatabaseEnvironment Class
BerkeleyDB Namespace