Convert all of the databases included in the file file to the byte order use_big_endian, if necessary. If no conversion is necessary, Convert always returns successfully. If the database is partitioned, cfg must contain the correct partition configuration in order to convert database partitions.

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

Syntax

C#
public static void Convert(
	string file,
	DatabaseConfig cfg,
	bool useBigEndian
)
Visual Basic (Declaration)
Public Shared Sub Convert ( _
	file As String, _
	cfg As DatabaseConfig, _
	useBigEndian As Boolean _
)
Visual C++
public:
static void Convert(
	String^ file, 
	DatabaseConfig^ cfg, 
	bool useBigEndian
)

Parameters

file
Type: System..::.String
The physical file containing the databases to be converted.
cfg
Type: BerkeleyDB..::.DatabaseConfig
Configuration parameters for the databases to be converted.
useBigEndian
Type: System..::.Boolean
If true, the databases are converted to big-endian; otherwise they are converted to little-endian.

See Also