SPSite.SelfServiceCreateSite method (String, String, String, UInt32, String, String, String, String, String, String, String, String, SPSiteSubscription)
藉由使用 [自助網站架設] 根據指定的配額範本和其他指定的資訊建立網站集合 (請參閱參數清單)。
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, _
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
'用途
Dim instance As SPSite
Dim siteUrl As String
Dim title As String
Dim description As String
Dim nLCID As UInteger
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, webTemplate, _
ownerLogin, ownerName, ownerEmail, _
contactLogin, contactName, contactEmail, _
quotaTemplate, siteSubscription)
public SPSite SelfServiceCreateSite(
string siteUrl,
string title,
string description,
uint nLCID,
string webTemplate,
string ownerLogin,
string ownerName,
string ownerEmail,
string contactLogin,
string contactName,
string contactEmail,
string quotaTemplate,
SPSiteSubscription siteSubscription
)
參數
siteUrl
Type: System.String網站集合絕對 URL。
title
Type: System.String若要建立網站的標題。
description
Type: System.String若要建立網站的描述。
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網站集合第二位連絡人的電子郵件。
quotaTemplate
Type: System.String配額範本名稱。
siteSubscription
Type: Microsoft.SharePoint.SPSiteSubscription若要將新的站台與相關聯的站台訂閱。
傳回值
Type: Microsoft.SharePoint.SPSite
SPSite 物件,表示新的網站集合。
備註
注意
如果傳遞的strSiteUrl的值不會指定絕對 URL,則這個方法會擲回[ArgumentException] 。如果在伺服器上停用 [自助網站架設] 時,會呼叫這個方法會擲回[SPException] 。