BusinessLogicConnection.ChangeDatabase 方法

此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。

Changes the current database for an open connection.

命名空间:  Microsoft.SqlServer.Replication.BusinessLogicSupport
程序集:  Microsoft.SqlServer.Replication.BusinessLogicSupport(在 Microsoft.SqlServer.Replication.BusinessLogicSupport.dll 中)

语法

声明
Public Sub ChangeDatabase ( _
    dbName As String _
)
用法
Dim instance As BusinessLogicConnection 
Dim dbName As String

instance.ChangeDatabase(dbName)
public void ChangeDatabase(
    string dbName
)
public:
virtual void ChangeDatabase(
    String^ dbName
) sealed
abstract ChangeDatabase : 
        dbName:string -> unit  
override ChangeDatabase : 
        dbName:string -> unit
public final function ChangeDatabase(
    dbName : String
)

参数

  • dbName
    类型:System.String
    The name of the database for the connection to use.

实现

IDbConnection.ChangeDatabase(String)

请参阅

参考

BusinessLogicConnection 类

Microsoft.SqlServer.Replication.BusinessLogicSupport 命名空间