Compartilhar via


SPSiteCollection.Delete method (String, Boolean)

Exclui o objeto especificado SPSite da coleção com a opção de excluir contas do Active Directory Domain Services que foram criadas para este conjunto de sites.

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

Syntax

'Declaração
Public Sub Delete ( _
    strSiteUrl As String, _
    bDeleteADAccounts As Boolean _
)
'Uso
Dim instance As SPSiteCollection
Dim strSiteUrl As String
Dim bDeleteADAccounts As Boolean

instance.Delete(strSiteUrl, bDeleteADAccounts)
public void Delete(
    string strSiteUrl,
    bool bDeleteADAccounts
)

Parâmetros

  • strSiteUrl
    Type: System.String

    Uma string que contém a URL do site.

  • bDeleteADAccounts
    Type: System.Boolean

    true se as contas do Active Directory Domain Services devem ser excluídas; Caso contrário, false.

Ver também

Referência

SPSiteCollection class

SPSiteCollection members

Delete overload

Microsoft.SharePoint.Administration namespace