public void DeleteAttachment(string listName, string listItemID, string url)
{
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.DeleteAttachment(listName, listItemID, url);
// Verify the requirements of DeleteAttachment operation.
this.VerifyDeleteAttachmentOperation();
}
catch (XmlSchemaValidationException exp)
{
// Log the errors and warnings
this.LogSchemaValidationErrors();
this.Site.Assert.Fail(exp.Message);
}
catch (SoapException)
{
this.VerifySoapExceptionFault();
throw;
}
}