SPUsageDatabase constructor (String, SPDatabaseServiceInstance)
初始化指定的name和serviceInstance參數的值為基礎的**[Microsoft.SharePoint.Administration.SPUsageDatabase]**類別的新執行個體。
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 SPUsageDatabase(name, serviceInstance)
public SPUsageDatabase(
string name,
SPDatabaseServiceInstance serviceInstance
)
參數
name
Type: System.String資料庫名稱。
serviceInstance
Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstance資料庫建立所在的資料庫服務執行個體。
備註
此建構函式,則需要從設定資料庫的還原序列化的。