SPSite.Delete 方法 (Boolean, Boolean)

Deletes the site collection from the server, optionally removes the site collection users from Active Directory Domain Services (ADDS), and optionally uses a timer job to delete the site collection gradually.

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

语法

声明
Public Sub Delete ( _
    deleteADAccounts As Boolean, _
    gradualDelete As Boolean _
)
用法
Dim instance As SPSite
Dim deleteADAccounts As Boolean
Dim gradualDelete As Boolean

instance.Delete(deleteADAccounts, gradualDelete)
public void Delete(
    bool deleteADAccounts,
    bool gradualDelete
)

参数

  • deleteADAccounts
    类型:System.Boolean

    true to remove the site collection users from ADDS; otherwise, false.

  • gradualDelete
    类型:System.Boolean

    true to delete the contents of the site collection gradually using the Gradual Delete timer job; false to delete the contents of the site collection immediately.

另请参阅

引用

SPSite 类

SPSite 成员

Delete 重载

Microsoft.SharePoint 命名空间