共用方式為


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
)

參數

  • username
    Type: System.String

    資料庫的 SQL 驗證的使用者名稱。

請參閱

參照

SPUsageDatabase class

SPUsageDatabase members

SPUsageDatabase overload

Microsoft.SharePoint.Administration namespace