共用方式為


SPSite.Delete method (Boolean)

Deletes the site collection from the server and removes the site collection users from Active Directory Domain Services (ADDS) if bDeleteADAccounts is true.

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

Syntax

'宣告
Public Sub Delete ( _
    bDeleteADAccounts As Boolean _
)
'用途
Dim instance As SPSite
Dim bDeleteADAccounts As Boolean

instance.Delete(bDeleteADAccounts)
public void Delete(
    bool bDeleteADAccounts
)

參數

  • bDeleteADAccounts
    Type: System.Boolean

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

請參閱

參照

SPSite class

SPSite members

Delete overload

Microsoft.SharePoint namespace