Microsoft.Protocols.TestSuites.MS_LISTSWS.MS_LISTSWSAdapter.DeleteList C# (CSharp) Method

DeleteList() public method

The DeleteList operation is used to delete the specified list from the specified site.
public DeleteList ( string listName ) : void
listName string The name of the list which will be deleted
return void
        public void DeleteList(string listName)
        {
            this.Site.Assert.IsNotNull(this.listsProxy, "The Proxy instance should not be NULL. If assert failed, the adapter need to be initialized");

            try
            {
                this.listsProxy.DeleteList(listName);

                // Verify the requirements of the DeleteList operation.
                this.VerifyDeleteListOperation();
            }
            catch (XmlSchemaValidationException exp)
            {
                // Log the errors and warnings
                this.LogSchemaValidationErrors();

                this.Site.Assert.Fail(exp.Message);
            }
            catch (SoapException)
            {
                this.VerifySoapExceptionFault();
                throw;
            }
        }
MS_LISTSWSAdapter