共用方式為


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

Remarks

This constructor is required for deserialization from the configuration database.

See Also

Reference

SPUsageDatabase Class

SPUsageDatabase Members

SPUsageDatabase Overload

Microsoft.SharePoint.Administration Namespace