Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPFarm Class
SPFarm Methods
Create Method
 Create Method (SqlConnectionStringB...
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
SPFarm.Create Method (SqlConnectionStringBuilder, String, SecureString) (Microsoft.SharePoint.Administration)
Creates a server farm and its associated configuration database based on the specified user and password.

Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Shared Function Create ( _
    configurationDatabase As SqlConnectionStringBuilder, _
    farmUser As String, _
    farmPassword As SecureString _
) As SPFarm
Visual Basic (Usage)
Dim configurationDatabase As SqlConnectionStringBuilder
Dim farmUser As String
Dim farmPassword As SecureString
Dim returnValue As SPFarm

returnValue = SPFarm.Create(configurationDatabase, farmUser, farmPassword)
C#
public static SPFarm Create (
    SqlConnectionStringBuilder configurationDatabase,
    string farmUser,
    SecureString farmPassword
)

Parameters

configurationDatabase

A System.Data.SqlClient.SqlConnectionStringBuilder object that specifies the connection string of the configuration database for the new server farm.

farmUser

A string that contains the user name for the server farm account that is used for the administrative site application pool and timer service.

farmPassword

A System.Security.SecureString object that contains the password for the server farm account that is used for the administrative site application pool and timer service. The text is encrypted for privacy when it is used, and deleted from computer memory when it is no longer needed.

Return Value

An SPFarm object that represents the new server farm.

The user name and password that you provide must be associated with a domain account.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker