Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPSite.SelfServiceCreateSite method (String, String, String, UInt32, 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 information.

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,
	SPSiteSubscription siteSubscription
)

Parameters

siteUrl
Type: System.String
title
Type: System.String
description
Type: System.String
nLCID
Type: System.UInt32
compatibilityLevel
Type: System.Int32
webTemplate
Type: System.String
ownerLogin
Type: System.String
ownerName
Type: System.String
ownerEmail
Type: System.String
contactLogin
Type: System.String
contactName
Type: System.String
contactEmail
Type: System.String
quotaTemplate
Type: System.String
siteSubscription
Type: Microsoft.SharePoint.SPSiteSubscription

Return value

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

The SelfServiceCreateSite method throws an exception of type ArgumentException if the value passed for the strSiteUrl parameter does not specify an absolute URL. If this method is called when Self-Service Site Creation is disabled on the server, an exception of type SPException is thrown.

Show:
© 2015 Microsoft