IDbConnection.ChangeDatabase(String) IDbConnection.ChangeDatabase(String) IDbConnection.ChangeDatabase(String) IDbConnection.ChangeDatabase(String) Method

定义

更改已打开的 Connection 对象的当前数据库。Changes the current database for an open Connection object.

public:
 void ChangeDatabase(System::String ^ databaseName);
public void ChangeDatabase (string databaseName);
abstract member ChangeDatabase : string -> unit
Public Sub ChangeDatabase (databaseName As String)

参数

databaseName
String String String String

要代替当前数据库使用的数据库名称。The name of the database to use in place of the current database.

适用于