SPSiteCollection Methods

Include Protected Members
Include Inherited Members

The SPSiteCollection type exposes the following members.

Methods

  Name Description
Public method Add(String, String, String) Creates an SPSite object based on the specified URL and on the user name and e-mail address of the owner of the site collection.
Public method Add(String, String, String, UInt32, String, String, String, String) Creates an SPSite object in the collection based on the specified URL, title, description, locale identifier (LCID), and site definition or site template, as well as on the user name, user display name, and e-mail address of the owner of the site collection.
Public method Add(String, String, String, UInt32, String, String, String, String, String, String, String) Creates an SPSite object in the collection based on the specified URL, title, description, locale identifier (LCID), and site definition or site template, as well as on the user name, user display name, and e-mail address of the owner of the site collection.
Public method Add(String, String, String, UInt32, String, String, String, String, String, String, String, Boolean) Creates an SPSite object in the collection based on the specified URL, title, description, locale identifier (LCID), and site definition or site template, as well as on the user names, user display names, and e-mail addresses of both the collection owner and a secondary contact.
Public method Add(SPSiteSubscription, String, String, String, UInt32, String, String, String, String, String, String, String, Boolean) Creates an SPSite object in the collection based on the specified site subscription, URL, title, description, locale identifier (LCID), and site definition or site template, as well as on the user names, user display names, and e-mail addresses of both the collection owner and a secondary contact.
Public method Add(String, String, String, UInt32, String, String, String, String, String, String, String, String, String, String, String) Creates an SPSite object in the collection based on the specified URL, title, description, locale identifier (LCID), and site definition or site template, as well as on the user names, user display names, and e-mail addresses of both the collection owner and a secondary contact, and on the database server, name for the new database, and the user name and password of the database administrator.
Public method Add(SPSiteSubscription, String, String, String, UInt32, String, String, String, String, String, String, String, String, String, String, String) Creates an SPSite object in the collection based on the specified site subscription, URL, title, description, locale identifier (LCID), and site definition or site template, as well as on the user names, user display names, and e-mail addresses of both the collection owner and a secondary contact, and on the database server, name for the new database, and the user name and password of the database administrator.
Public method Backup Creates a backup file for the site collection located at the specified URL.
Public method Delete(String) Deletes the specified SPSite object from the collection.
Public method Delete(String, Boolean) Deletes the specified SPSite object from the collection with the option of deleting Active Directory Domain Services accounts that were created for this site collection.
Public method Delete(String, Boolean, Boolean)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Gets the serialized state of the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
Public method Restore(String, String, Boolean) Restores the specified SPSite object to the collection.
Public method Restore(String, String, Boolean, Boolean) Restores the specified SPSite object to the collection and specifies whether to use the host header as the name of the site collection.
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate method IEnumerable<SPSite>.GetEnumerator

Top

See Also

Reference

SPSiteCollection Class

Microsoft.SharePoint.Administration Namespace