SPUsageDatabase Constructor (String, SPDatabaseServiceInstance)
Initializes a new instance of the [Microsoft.SharePoint.Administration.SPUsageDatabase] class based on values of the given name and serviceInstance parameters.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
name As String, _
serviceInstance As SPDatabaseServiceInstance _
)
'Usage
Dim name As String
Dim serviceInstance As SPDatabaseServiceInstance
Dim instance As New SPUsageDatabase(name, serviceInstance)
public SPUsageDatabase(
string name,
SPDatabaseServiceInstance serviceInstance
)
Parameters
name
Type: System.StringThe database name.
serviceInstance
Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstanceDatabase service instance where the database is created.
Remarks
This constructor is required for deserialization from the configuration database.