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.String

    A string that contains the name of the database.

See also

Reference

SPDatabase class

SPDatabase members

SPDatabase overload

Microsoft.SharePoint.Administration namespace