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
- role
Type: System.String
- farmId
Type: System.Int32
- dbName
Type: System.String
- dbServer
Type: System.String
Return value
Type: System.Boolean