SPFarm.Create method (String)
Creates a server farm, its associated configuration database, and a farm account on the local computer.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function Create ( _
configurationDatabase As String _
) As SPFarm
'Usage
Dim configurationDatabase As String
Dim returnValue As SPFarm
returnValue = SPFarm.Create(configurationDatabase)
public static SPFarm Create(
string configurationDatabase
)
Parameters
configurationDatabase
Type: System.StringA String object that contains the connection string for the configuration database of the new server farm.
Return value
Type: Microsoft.SharePoint.Administration.SPFarm
An SPFarm object that represents the new server farm.