SPFarm.Create method (SqlConnectionStringBuilder)
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 SqlConnectionStringBuilder _
) As SPFarm
'Usage
Dim configurationDatabase As SqlConnectionStringBuilder
Dim returnValue As SPFarm
returnValue = SPFarm.Create(configurationDatabase)
public static SPFarm Create(
SqlConnectionStringBuilder configurationDatabase
)
Parameters
configurationDatabase
Type: System.Data.SqlClient.SqlConnectionStringBuilderA SqlConnectionStringBuilder object that specifies the connection string of the configuration database for the new server farm.
Return value
Type: Microsoft.SharePoint.Administration.SPFarm
An SPFarm object that represents the new server farm.
Remarks
The Network Service account is the server farm account that is created.