SPSite.SelfServiceCreateSite method (String, String, String, UInt32, Int32, Int32, String, String, String, String, String, String, String, String, SPSiteSubscription)
SharePoint 2013
Creates a site collection by using Self-Service Site Creation based on the specified quota template and other specified information (see parameter list).
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)] public SPSite SelfServiceCreateSite( string siteUrl, string title, string description, uint nLCID, int compatibilityLevel, int overrideCompatLevel, string webTemplate, string ownerLogin, string ownerName, string ownerEmail, string contactLogin, string contactName, string contactEmail, string quotaTemplate, SPSiteSubscription siteSubscription )
Parameters
- siteUrl
- Type: System.String
A string that contains the absolute URL for the site collection.
- title
- Type: System.String
A string that contains the title for the site collection.
- description
- Type: System.String
A string that contains the description for the site collection.
- nLCID
- Type: System.UInt32
An unsigned 32-bit integer that specifies the locale ID.
- compatibilityLevel
- Type: System.Int32
- overrideCompatLevel
- Type: System.Int32
- webTemplate
- Type: System.String
A string that contains the name of the site definition to use to create the site collection.
- ownerLogin
- Type: System.String
A string that contains the user name for the site collection owner.
- ownerName
- Type: System.String
A string that contains the display name for the site collection owner.
- ownerEmail
- Type: System.String
A string that contains the e-mail address for the site collection owner.
- contactLogin
- Type: System.String
A string that contains the user name for the secondary contact.
- contactName
- Type: System.String
A string that contains the display name for the secondary contact.
- contactEmail
- Type: System.String
A string that contains the e-mail address for the secondary contact.
- quotaTemplate
- Type: System.String
A string that contains the name of the quota template.
- siteSubscription
- Type: Microsoft.SharePoint.SPSiteSubscription
Site subscription to associate with the new site.
Return value
Type: Microsoft.SharePoint.SPSiteAn SPSite object that represents the new site collection.