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

GetAttachmentCollection() public method

The GetAttachmentCollection operation is used to retrieve information about all the lists on the current site.
public GetAttachmentCollection ( string listName, string listItemID ) : GetAttachmentCollectionResponseGetAttachmentCollectionResult
listName string list name or GUID for returning the result.
listItemID string The identifier of the content type which will be collected.
return GetAttachmentCollectionResponseGetAttachmentCollectionResult
        public GetAttachmentCollectionResponseGetAttachmentCollectionResult GetAttachmentCollection(string listName, string listItemID)
        {
            this.Site.Assert.IsNotNull(this.listsProxy, "The Proxy instance should not be NULL. If assert failed, the adapter need to be initialized");

            GetAttachmentCollectionResponseGetAttachmentCollectionResult result = null;
            try
            {
                result = this.listsProxy.GetAttachmentCollection(listName, listItemID);

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

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

            return result;
        }
MS_LISTSWSAdapter