Rename the underlying file represented by Filename, incidentally renaming all of the databases it contained.

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

Syntax

C#
public static void Rename(
	string Filename,
	string NewName,
	DatabaseEnvironment DbEnv
)
Visual Basic (Declaration)
Public Shared Sub Rename ( _
	Filename As String, _
	NewName As String, _
	DbEnv As DatabaseEnvironment _
)
Visual C++
public:
static void Rename(
	String^ Filename, 
	String^ NewName, 
	DatabaseEnvironment^ DbEnv
)

Parameters

Filename
Type: System..::.String
The file to rename
NewName
Type: System..::.String
The new filename
DbEnv
Type: BerkeleyDB..::.DatabaseEnvironment
The DatabaseEnvironment the database belongs to

See Also