SPUsageDatabase constructor (String, SPDatabaseServiceInstance, String, String)
初始化指定的name、 serviceInstance、 username和password參數的值為基礎的**[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, _
username As String, _
password As String _
)
'用途
Dim name As String
Dim serviceInstance As SPDatabaseServiceInstance
Dim username As String
Dim password As String
Dim instance As New SPUsageDatabase(name, serviceInstance, _
username, password)
public SPUsageDatabase(
string name,
SPDatabaseServiceInstance serviceInstance,
string username,
string password
)
參數
name
Type: System.String資料庫的名稱。
serviceInstance
Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstance資料庫建立所在的資料庫服務執行個體。
username
Type: System.String資料庫的 SQL 驗證的使用者名稱。
password
Type: System.StringSQL 驗證的密碼。