Share via


SPDatabaseService constructor (String, SPFarm)

Initializes a new instance of the SPDatabaseService class based on the specified service name and server farm.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    farm As SPFarm _
)
'Usage
Dim name As String
Dim farm As SPFarm

Dim instance As New SPDatabaseService(name, farm)
public SPDatabaseService(
    string name,
    SPFarm farm
)

Parameters

  • name
    Type: System.String

    A string that contains the name of the service as it appears in the user interface.

See also

Reference

SPDatabaseService class

SPDatabaseService members

SPDatabaseService overload

Microsoft.SharePoint.Administration namespace