Share via


SPService.GetFirstPreconfiguredDatabase method

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

Syntax

'Declaration
Protected Function GetFirstPreconfiguredDatabase ( _
    role As String, _
    farmId As Integer, _
    <OutAttribute> ByRef dbName As String, _
    <OutAttribute> ByRef dbServer As String _
) As Boolean
'Usage
Dim role As String
Dim farmId As Integer
Dim dbName As String
Dim dbServer As String
Dim returnValue As Boolean

returnValue = Me.GetFirstPreconfiguredDatabase(role, _
    farmId, dbName, dbServer)
protected bool GetFirstPreconfiguredDatabase(
    string role,
    int farmId,
    out string dbName,
    out string dbServer
)

Parameters

Return value

Type: System.Boolean

See also

Reference

SPService class

SPService members

Microsoft.SharePoint.Administration namespace