SPSite.SelfServiceCreateSite 方法 (String, String, String, UInt32, String, String, String, String, String, String, String, String, SPSiteSubscription)

Creates a site collection by using Self-Service Site Creation based on the specified quota template and other specified information (see parameter list).

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
    类型:System.String

    The absolute URL for the site collection.

  • description
    类型:System.String

    A description of the site to create.

  • nLCID
    类型:System.UInt32

    An unsigned 32-bit integer representing the location identifier.

  • webTemplate
    类型:System.String

    Name of the site definition to use in creating the site collection.

  • ownerLogin
    类型:System.String

    Login name of the site collection owner.

  • ownerName
    类型:System.String

    Display name for the site collection owner.

  • ownerEmail
    类型:System.String

    Email for the site collection owner.

  • contactLogin
    类型:System.String

    Login name of the site collection secondary contact.

  • contactName
    类型:System.String

    Display name for the site collection secondary contact.

  • contactEmail
    类型:System.String

    Email for the site collection secondary contact.

返回值

类型:Microsoft.SharePoint.SPSite
A SPSite object that represents the new site collection.

备注

警告

This method throws an [ArgumentException] if the value passed for strSiteUrl does not specify an absolute URL. If this method is called when Self-Service Site Creation is disabled on the server an [SPException] is thrown.

另请参阅

引用

SPSite 类

SPSite 成员

SelfServiceCreateSite 重载

Microsoft.SharePoint 命名空间