Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++ Members: Show All Members: Filtered Members: Filtered Members: Filtered

C#
Visual Basic
Visual C++
Include Protected Members
Include Inherited Members

Berkeley DB .NET API Documentation
BaseDatabase..::.Rename Method
BaseDatabase Class See Also Send Feedback

Applications should not rename databases that are currently in use. If an underlying file is being renamed and logging is currently enabled in the database environment, no database in the file should be open when Rename is called. In particular, some architectures do not permit renaming files with open handles. On these architectures, attempts to rename databases that are currently in use by any thread of control in the system may fail.

Rename should not be called if the rename is intended to be transactionally safe; RenameDB(String, String, Boolean) should be used instead.

# Overload List

| Name | Description
--- | --- | ---
| Rename(String, String) | Rename the underlying file represented by Filename, incidentally renaming all of the databases it contained.
| Rename(String, String, DatabaseEnvironment) | Rename the underlying file represented by Filename, incidentally renaming all of the databases it contained.
| Rename(String, String, String) | Rename the database specified by Filename and DatabaseName.
| Rename(String, String, String, DatabaseEnvironment) | Rename the database specified by Filename and DatabaseName.

# See Also

BaseDatabase Class
BaseDatabase Members
BerkeleyDB Namespace