Freigeben über


SPWebApplication.SelfServiceCreate-Methode (SPWeb, String, String, String, String, String, String, Int32)

SPSite oder ein SPWeb-Objekt, je nach den Standardmodus der Arbeitszeittabellenerstellung Self-Service-festlegen in der SPWebApplication basierend auf einem einfachen Satz von Eingabeparametern erstellt. Websitebesitzer kann die Benutzer, die durch Aufrufen dieser Methode werden. Die Website wird mit der Vorlage "STS #0" Websites erstellt werden ohne eine Beschreibung des Titels wird identisch sein wie die relative URL und die LCID wird mit der Eingabe Kontext Web übereinstimmen. Hinweis: Wenn eine einzelne Website erstellt werden, er muss eindeutige Berechtigungen und ein Link zu, dass ihre Homepage wird in der oberen Navigationsleiste die übergeordnete Website platziert werden.

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

Syntax

'Declaration
Public Function SelfServiceCreate ( _
    contextWeb As SPWeb, _
    siteUrl As String, _
    siteTitle As String, _
    siteDescription As String, _
    contactLogin As String, _
    contactName As String, _
    contactEmail As String, _
    compatibilityLevel As Integer _
) As SPWeb
'Usage
Dim instance As SPWebApplication
Dim contextWeb As SPWeb
Dim siteUrl As String
Dim siteTitle As String
Dim siteDescription As String
Dim contactLogin As String
Dim contactName As String
Dim contactEmail As String
Dim compatibilityLevel As Integer
Dim returnValue As SPWeb

returnValue = instance.SelfServiceCreate(contextWeb, _
    siteUrl, siteTitle, siteDescription, _
    contactLogin, contactName, contactEmail, _
    compatibilityLevel)
public SPWeb SelfServiceCreate(
    SPWeb contextWeb,
    string siteUrl,
    string siteTitle,
    string siteDescription,
    string contactLogin,
    string contactName,
    string contactEmail,
    int compatibilityLevel
)

Parameter

Rückgabewert

Typ: Microsoft.SharePoint.SPWeb
SPWeb: entweder erstellt die tatsächliche SPWeb für die einzelnen Website Erstellungsmodus oder das Stammverzeichnis SPWeb (SPSite.RootWeb) des neuen SPSite andernfalls.

Siehe auch

Referenz

SPWebApplication Klasse

SPWebApplication-Member

SelfServiceCreate-Überladung

Microsoft.SharePoint.Administration-Namespace