SPSite.SelfServiceCreateSite - Méthode (String, String, String, UInt32, Int32, String, String, String, String, String, String, String, String, SPSiteSubscription)
Creates a site collection by using Self-Service Site Creation based on the specified quota template and other information.
Espace de noms : Microsoft.SharePoint
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Function SelfServiceCreateSite ( _
siteUrl As String, _
title As String, _
description As String, _
nLCID As UInteger, _
compatibilityLevel As Integer, _
webTemplate As String, _
ownerLogin As String, _
ownerName As String, _
ownerEmail As String, _
contactLogin As String, _
contactName As String, _
contactEmail As String, _
quotaTemplate As String, _
siteSubscription As SPSiteSubscription _
) As SPSite
'Utilisation
Dim instance As SPSite
Dim siteUrl As String
Dim title As String
Dim description As String
Dim nLCID As UInteger
Dim compatibilityLevel As Integer
Dim webTemplate As String
Dim ownerLogin As String
Dim ownerName As String
Dim ownerEmail As String
Dim contactLogin As String
Dim contactName As String
Dim contactEmail As String
Dim quotaTemplate As String
Dim siteSubscription As SPSiteSubscription
Dim returnValue As SPSite
returnValue = instance.SelfServiceCreateSite(siteUrl, _
title, description, nLCID, compatibilityLevel, _
webTemplate, ownerLogin, ownerName, _
ownerEmail, contactLogin, contactName, _
contactEmail, quotaTemplate, siteSubscription)
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
)
Paramètres
- 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
Valeur renvoyée
Type : Microsoft.SharePoint.SPSite
An SPSite object that represents the new site collection.
Remarques
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.