SPSiteCollection.Add method

Creates an SPSite object in the collection.

Overload list

  Name Description
Public method Add(SPSiteCollectionAddParameters)
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, Int32, String, String, String, String, String, String, String) Creates an SPSite object in the collection based on the specified URL, title, description, locale identifier (LCID), compatibility level 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, 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, Int32, 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), compatibility level 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, Int32, String, String, String, String, String, String, String, Boolean) Creates a new site to a site subscription.
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 Add(String, String, String, UInt32, Int32, String, String, String, String, String, String, String, String, String, String, String) Creates a new site in a new content database.
Public method Add(SPSiteSubscription, String, String, String, UInt32, Int32, String, String, String, String, String, String, String, String, String, String, String) Creates a new site in a new content database.

Top

See also

Reference

SPSiteCollection class

SPSiteCollection members

Microsoft.SharePoint.Administration namespace