共用方式為


SPDatabase.ChangeDatabaseInstance method (SPDatabaseServiceInstance)

修改每個連接字串,用來存取資料庫的指定的資料庫服務執行個體。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Sub ChangeDatabaseInstance ( _
    newParent As SPDatabaseServiceInstance _
)
'用途
Dim instance As SPDatabase
Dim newParent As SPDatabaseServiceInstance

instance.ChangeDatabaseInstance(newParent)
public void ChangeDatabaseInstance(
    SPDatabaseServiceInstance newParent
)

參數

請參閱

參照

SPDatabase class

SPDatabase members

ChangeDatabaseInstance overload

Microsoft.SharePoint.Administration namespace