SPSite.SelfServiceCreateSite method (String, String, String, UInt32, Int32, String, String, String, String, String, String, String, String)

SharePoint 2013

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPSite SelfServiceCreateSite(
	string siteUrl,
	string title,
	string description,
	uint nLCID,
	int compatibilityLevel,
	string webTemplate,
	string ownerLogin,
	string ownerName,
	string ownerEmail,
	string contactLogin,
	string contactName,
	string contactEmail,
	string quotaTemplate
)

Parameters

siteUrl
Type: System.String

The absolute URL for the site collection.

title
Type: System.String

Title of the site to create.

description
Type: System.String

A description of the site to create.

nLCID
Type: System.UInt32

An unsigned 32-bit integer representing the location identifier.

compatibilityLevel
Type: System.Int32
webTemplate
Type: System.String

Name of the site definition to use in creating the site collection.

ownerLogin
Type: System.String

Login name of the site collection owner.

ownerName
Type: System.String

Display name for the site collection owner.

ownerEmail
Type: System.String

Email for the site collection owner.

contactLogin
Type: System.String

Login name of the site collection secondary contact.

contactName
Type: System.String

Display name for the site collection secondary contact.

contactEmail
Type: System.String

Email for the site collection secondary contact.

quotaTemplate
Type: System.String

Quota template name.

Return value

Type: Microsoft.SharePoint.SPSite
An SPSite object that represents the new site collection. 

This method throws an ArgumentException if the value passed for strSiteUrl does not specify an absolute URL. If this method is called when Self-Service Site Creation is disabled on the server an SPException is thrown.

Show: