Share via


SPWebApplication.SelfServiceCreate method (SPWeb, String, String, String, String, String, String, Int32, Boolean)

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, _
    createFromSiteMaster As Boolean _
) 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 createFromSiteMaster As Boolean
Dim returnValue As SPWeb

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

Parameters

Return value

Type: Microsoft.SharePoint.SPWeb

See also

Reference

SPWebApplication class

SPWebApplication members

SelfServiceCreate overload

Microsoft.SharePoint.Administration namespace