Rename Method (String, String, String, DatabaseEnvironment)

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
BaseDatabase..::.Rename Method (String, String, String, DatabaseEnvironment)
BaseDatabase Class See Also Send Feedback

Rename the database specified by Filename and DatabaseName.

Namespace: BerkeleyDB
Assembly: libdb_dotnet60 (in libdb_dotnet60.dll) Version: 6.0.19.0

# Syntax

C#
    public static void Rename(
    	string Filename,
    	string DatabaseName,
    	string NewName,
    	DatabaseEnvironment DbEnv
    )

Visual Basic (Declaration)
    Public Shared Sub Rename ( _
    	Filename As String, _
    	DatabaseName As String, _
    	NewName As String, _
    	DbEnv As DatabaseEnvironment _
    )

Visual C++
    public:
    static void Rename(
    	String^ Filename,
    	String^ DatabaseName,
    	String^ NewName,
    	DatabaseEnvironment^ DbEnv
    )

#### Parameters

Filename
  Type: System..::.String
  The file to rename

DatabaseName
  Type: System..::.String
  The database to rename

NewName
  Type: System..::.String
  The new database name

DbEnv
  Type: BerkeleyDB..::.DatabaseEnvironment
  The DatabaseEnvironment the database belongs to

# See Also

BaseDatabase Class
Rename Overload
BerkeleyDB Namespace