Lists.DeleteList method
Exclui a lista especificada.
Namespace: WebSvcLists
Assembly: STSSOAP (in STSSOAP.dll)
Syntax
'Declaração
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/DeleteList", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub DeleteList ( _
listName As String _
)
'Uso
Dim instance As Lists
Dim listName As String
instance.DeleteList(listName)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/DeleteList", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void DeleteList(
string listName
)
Parâmetros
listName
Type: System.StringUma cadeia de caracteres que contém o título ou o GUID da lista.
Examples
O exemplo de código a seguir exclui uma lista especificada do site atual.
Dim listService As New Web_Reference_Folder.Lists()
listService.Credentials = System.Net.CredentialCache.DefaultCredentials
listService.DeleteList("List_Name")
Web_Reference_Folder.Lists listService = new Web_Reference_Folder.Lists();
listService.Credentials= System.Net.CredentialCache.DefaultCredentials;
listService.DeleteList("List_Name");