Length Property

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
SecondaryQueueDatabaseConfig..::.Length Property
SecondaryQueueDatabaseConfig Class See Also Send Feedback

Specify the length of records in the database.

Namespace: BerkeleyDB
Assembly: libdb_dotnet62 (in libdb_dotnet62.dll) Version: 6.2.32.0

# Syntax

C#
    public uint Length { get; set; }

Visual Basic (Declaration)
    Public Property Length As UInteger

Visual C++
    public:
    property unsigned int Length {
    	unsigned int get ();
    	void set (unsigned int value);
    }

# Remarks

The record length must be enough smaller than PageSize that at least one record plus the database page's metadata information can fit on each database page.

Any records added to the database that are less than Length bytes long are automatically padded (see PadByte for more information).

Any attempt to insert records into the database that are greater than Length bytes long cause the call to fail immediately and return an error.

If the database already exists, this setting is ignored.

# See Also

SecondaryQueueDatabaseConfig Class
BerkeleyDB Namespace