SPFarm Methods

Include Protected Members
Include Inherited Members

The SPFarm type exposes the following members.

Methods

  Name Description
Public method AddBackupObjects Adds the server farm and its children to the backup/restore operation.
Protected method AddSPPersistedChildren
Public method Clone Returns a clone of the object that does not come from the in-memory cache, which enables calling code to help ensure thread safety. (Inherited from SPPersistedObject.)
Public methodStatic member Create(SqlConnectionStringBuilder) Creates a server farm, its associated configuration database, and a farm account on the local computer.
Public methodStatic member Create(String) Creates a server farm, its associated configuration database, and a farm account on the local computer.
Public methodStatic member Create(SqlConnectionStringBuilder, String, SecureString) Obsolete. Creates a server farm and its associated configuration database, based on the specified user and password. This method is obsolete. Use the Create() method that takes a passphrase.
Public methodStatic member Create(SqlConnectionStringBuilder, String, String) Obsolete. Creates a server farm and its associated configuration database, based on the specified user and password.
Public methodStatic member Create(SqlConnectionStringBuilder, SqlConnectionStringBuilder, String, SecureString) Obsolete. Creates a server farm and its associated configuration database based on the specified content database, user, and password.
Public methodStatic member Create(SqlConnectionStringBuilder, String, SecureString, SecureString) Creates a server farm and its associated configuration database, based on the specified user and password.
Public methodStatic member Create(SqlConnectionStringBuilder, SqlConnectionStringBuilder, String, SecureString, SecureString) Creates a server farm and its associated configuration database, based on the specified user and password.
Public method CurrentUserIsAdministrator() Returns a Boolean value that indicates whether the current user is an administrator in the server farm.
Public method CurrentUserIsAdministrator(Boolean) Returns a Boolean value that indicates whether the current user is an administrator in the server farm.
Public method Delete Deletes the object. (Inherited from SPPersistedObject.)
Public method DisableCaching Disables the file system and in-memory caches of configuration objects in the server farm.
Public method EnableCaching Enables the file system and in-memory caches of configuration objects in the server farm.
Public method Equals Determines whether the current persisted object equals the specified object. (Inherited from SPPersistedObject.)
Protected method Finalize (Inherited from Object.)
Public method GetChild<T>() Returns the child of the persisted object based on the specified type. (Inherited from SPPersistedObject.)
Public method GetChild<T>(String) Returns the child object of the persisted object based on the specified name. (Inherited from SPPersistedObject.)
Public method GetHashCode Serves as a hash function for the persisted object. (Inherited from SPPersistedObject.)
Public method GetObject(Guid) Returns the specified object based on its associated GUID.
Public method GetObject(String, Guid, Type) Returns the specified object based on its associated name, GUID, and type.
Public method GetObjectData Gets the serialized state of the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Protected method HasAdditionalUpdateAccess Override this method to allow more users to update the object. (Inherited from SPPersistedObject.)
Public method Invalidate Invalidates computed property values. (Inherited from SPPersistedUpgradableObject.)
Public method Join Adds the local computer to the server farm.
Protected method MemberwiseClone (Inherited from Object.)
Public method Migrate() Obsolete. Migrates settings from the Windows SharePoint Services 2.0 server farm with which this farm is paired.
Public method Migrate(Boolean) Obsolete. Migrates settings from a Windows SharePoint Services 2.0 server farm with which this farm is paired, with the option of including all children.
Public method MigrateGroup
Public method MigrateUserAccount Migrates a user account in SharePoint Foundation to a new login name and binary ID.
Public method OnAbort Raises the Abort (backup) event.
Public method OnBackup Raises the Backup event.
Public method OnBackupComplete Raises the BackupComplete event.
Protected method OnDeserialization Called immediately after the base class deserializes itself to do additional work. (Inherited from SPPersistedObject.)
Public method OnPostRestore Raises the PostRestore event.
Public method OnPrepareBackup Raises the PrepareBackup event.
Public method OnPreRestore Raises the PreRestore event.
Public method OnRestore Raises the Restore event.
Public methodStatic member Open(String) Returns an object that represents a remote server farm based on the specified connection string.
Public methodStatic member Open(SqlConnectionStringBuilder, SecureString) Returns an object representing a remote server SPFarm object based on the specified connection string.
Public methodStatic member Open(SqlConnectionStringBuilder, String, SecureString) Obsolete. Obsolete. Use the Open() method that takes a passphrase. Returns an object representing a remote SPFarm.
Public methodStatic member Open(SqlConnectionStringBuilder, String, String) Obsolete. Returns a remote server farm based on the specified connection string, user name, and password. Obsolete. Use the Open() method that takes a passphrase.
Public method Provision Makes the changes to the local server that are needed before the object can be used. (Inherited from SPPersistedObject.)
Public method RemoveObsoleteClass Removes all references to an obsolete class. This includes base classes and child objects from the configuration database.
Public method ToString Returns the type and name of an object and of all its ancestors (parent, grandparent, and so on). (Inherited from SPPersistedObject.)
Public method Uncache Frees the memory cache that is used by the object. (Inherited from SPPersistedObject.)
Public method Unjoin Removes the local server from the farm.
Public method Unprovision Makes the changes to the local server that are needed to clean up after deleting the object. (Inherited from SPPersistedObject.)
Public method Update() Obsolete. (Overrides SPPersistedObject.Update().)
Public method Update(Boolean) Causes the object to save its state and propagate changes to all the computers in the server farm, optionally throwing an exception if the object already exists in the configuration store. (Inherited from SPPersistedObject.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)
Public method Upgrade() Upgrades the object. (Inherited from SPPersistedUpgradableObject.)
Public method Upgrade(Boolean) Upgrades the object, and if a Boolean parameter equals true, recursively upgrades all descendants of the current object. (Inherited from SPPersistedUpgradableObject.)
Protected method Validate Validates the state of all fields before persisting the object. (Inherited from SPPersistedObject.)
Public method ValidateBackwardsCompatibility Validates the backward compatibility of the content database schema for the DLLs on the Web front end. This method is called each time a connection is made to the content database to verify that the database schema is compatible. (Inherited from SPPersistedUpgradableObject.)

Top

See Also

Reference

SPFarm Class

Microsoft.SharePoint.Administration Namespace