다음을 통해 공유


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)
Available in Sandboxed Solutions: No

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.String

    A 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.

See Also

Reference

SPFarm Class

SPFarm Members

Create Overload

Microsoft.SharePoint.Administration Namespace