共用方式為


SPSite.SelfServiceCreateSite method (String, String, String, UInt32, Int32, String, String, String, String, String, String, String, String)

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

Syntax

'宣告
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 _
) As SPSite
'用途
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 returnValue As SPSite

returnValue = instance.SelfServiceCreateSite(siteUrl, _
    title, description, nLCID, compatibilityLevel, _
    webTemplate, ownerLogin, ownerName, _
    ownerEmail, contactLogin, contactName, _
    contactEmail, quotaTemplate)
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
)

參數

  • nLCID
    Type: System.UInt32

    不帶正負號的 32 位元整數,表示位置識別碼。

  • 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

    網站集合第二位連絡人的電子郵件。

傳回值

Type: Microsoft.SharePoint.SPSite
SPSite 物件,表示新的網站集合。

備註

如果傳遞的strSiteUrl 的值不會指定絕對 URL,則這個方法會擲回ArgumentException 。如果在伺服器上停用 [自助網站架設] 時,會呼叫這個方法會擲回SPException 。

請參閱

參照

SPSite class

SPSite members

SelfServiceCreateSite overload

Microsoft.SharePoint namespace