SPDatabase constructor (String, SPDatabaseServiceInstance)
初始化根據指定的名稱和執行個體的SPDatabase類別的新執行個體。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub New ( _
name As String, _
serviceInstance As SPDatabaseServiceInstance _
)
'用途
Dim name As String
Dim serviceInstance As SPDatabaseServiceInstance
Dim instance As New SPDatabase(name, serviceInstance)
public SPDatabase(
string name,
SPDatabaseServiceInstance serviceInstance
)
參數
name
Type: System.String字串,包含資料庫的名稱。
serviceInstance
Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstanceSPDatabaseServiceInstance物件,代表 SQL 型資料庫執行個體。