共用方式為


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
)

參數

請參閱

參照

SPDatabase class

SPDatabase members

SPDatabase overload

Microsoft.SharePoint.Administration namespace