Microsoft.Protocols.TestSuites.MS_OUTSPS.MS_OUTSPSAdapter.DeleteAttachment C# (CSharp) Method

DeleteAttachment() public method

The DeleteAttachment operation is used to remove the attachment from the specified list item in the specified list.
public DeleteAttachment ( string listName, string listItemId, string url ) : void
listName string The name of the list in which the list item to delete existing attachment.
listItemId string The id of the list item from which the attachment will be deleted.
url string Absolute URL of the attachment that should be deleted.
return void
        public void DeleteAttachment(string listName, string listItemId, string url)
        {
            if (null == this.listsProxy)
            {
                throw new InvalidOperationException("The Proxy instance is NULL, need to initialize the adapter");
            }

            this.listsProxy.DeleteAttachment(listName, listItemId, url);
            this.VerifyTransportRequirement();
        }