SPDatabase constructor (String, SPDatabaseServiceInstance)
Initializes a new instance of the SPDatabase class based on the specified name and instance.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
serviceInstance As SPDatabaseServiceInstance _
)
'Usage
Dim name As String
Dim serviceInstance As SPDatabaseServiceInstance
Dim instance As New SPDatabase(name, serviceInstance)
public SPDatabase(
string name,
SPDatabaseServiceInstance serviceInstance
)
Parameters
name
Type: System.StringA string that contains the name of the database.
serviceInstance
Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstanceAn SPDatabaseServiceInstance object that represents the SQL-named instance of the database.