共用方式為


SPSite.Delete method (Boolean, Boolean)

從伺服器刪除網站集合、 選擇性地移除網站集合使用者從現用目錄網域服務 (加入),並選擇性地使用計時器工作,然後逐漸刪除網站集合。

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

Syntax

'宣告
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
    Type: System.Boolean

    若要移除網站集合使用者從 ADDS ; true否則, false。

  • gradualDelete
    Type: System.Boolean

    若要刪除的逐漸使用 Gradual 刪除計時器工作 ; 在網站集合內容的true若要立即刪除網站集合之內容的false 。

請參閱

參照

SPSite class

SPSite members

Delete overload

Microsoft.SharePoint namespace