SPUsageDatabase Constructor (String, SPDatabaseServiceInstance, String, String)
Initializes a new instance of the [Microsoft.SharePoint.Administration.SPUsageDatabase] class based on values of the given name, serviceInstance, username, and password parameters. This constructor is for a usage database.
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, _
username As String, _
password As String _
)
'Usage
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
)
Parameters
name
Type: System.StringName of the database.
serviceInstance
Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstanceDatabase service instance where database is created.
username
Type: System.StringDatabase user name for SQL authentication.
password
Type: System.StringPassword for SQL authentication.