SPSiteCollection.Add method (String, String, String)
SharePoint 2013
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.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- siteUrl
- Type: System.String
A String that contains the URL for the site collection, for example, Site_Name or sites/Site_Name. It may either be server-relative or absolute for typical sites.
- ownerLogin
- Type: System.String
A String that contains the user name of the owner of the site collection (for example, Domain\User). In Active Directory Domain Services account creation mode, the ownerLogin parameter must contain a value even if the value does not correspond to an actual user name.
- ownerEmail
- Type: System.String
A String that contains the e-mail address of the owner of the site collection.
Return value
Type: Microsoft.SharePoint.SPSiteAn SPSite object that represents the new site collection.