DataDirs Field

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
DatabaseEnvironmentConfig..::.DataDirs Field
DatabaseEnvironmentConfig Class See Also Send Feedback

Paths of directories to be used as the location of the access method database files.

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

# Syntax

C#
    public List<string> DataDirs

Visual Basic (Declaration)
    Public DataDirs As List(Of String)

Visual C++
    public:
    List<String^>^ DataDirs

# Remarks

Paths specified to Open(String, DatabaseConfig) are searched relative to this path. Paths set using this method are additive, and specifying more than one results in each specified directory being searched for database files.

If no database directories are specified, database files must be named either by absolute paths or relative to the environment home directory. See Berkeley DB File Naming in the Programmer's Reference Guide for more information.

# See Also

DatabaseEnvironmentConfig Class
BerkeleyDB Namespace