共用方式為


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

會建立 SPSite 或 SPWeb 物件使用 SPWebApplication.MaxSiteVersion。

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

Syntax

'宣告
Public Function SelfServiceCreate ( _
    contextWeb As SPWeb, _
    siteUrl As String, _
    siteTitle As String, _
    siteDescription As String, _
    contactLogin As String, _
    contactName As String, _
    contactEmail As String _
) As SPWeb
'用途
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 returnValue As SPWeb

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

參數

傳回值

Type: Microsoft.SharePoint.SPWeb

請參閱

參照

SPWebApplication class

SPWebApplication members

SelfServiceCreate overload

Microsoft.SharePoint.Administration namespace