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.StringUma string que contém a URL do site.
bDeleteADAccounts
Type: System.Booleantrue se as contas do Active Directory Domain Services devem ser excluídas; Caso contrário, false.