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
)
參數
newParent
Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstanceSPDatabaseServiceInstance物件表示的資料庫服務執行個體。