Share via


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)
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 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