Replace all the documents and the cover of an album
Namespace:
IpernityNET.IpernityObjectsAssembly: IpernityNET (in IpernityNET.dll) Version: 0.3.1.0 (0.3.1.0)
Syntax
C# |
---|
public DocumentAddResult DocsSetList( IEnumerable<Document> docs, int coverId ) |
Visual Basic (Declaration) |
---|
Public Function DocsSetList ( _ docs As IEnumerable(Of Document), _ coverId As Integer _ ) As DocumentAddResult |
Visual C++ |
---|
public: DocumentAddResult^ DocsSetList( IEnumerable<Document^>^ docs, int coverId ) |
Parameters
- docs
- Type: System.Collections.Generic..::.IEnumerable<(Of <(Document>)>)
A list of Document. This list of documents will replace the album existing list. Document will appear in the album the order sent.
- coverId
- Type: System..::.Int32
The document ID to use as the album cover. This document must belong to the doc_ids list.
Return Value
A DocumentAddResult containing the resultsRemarks
This method encapsulates album.docs.setList
This method requires "write" permission on docs.
Exceptions
Exception | Condition |
---|---|
IpernityNET..::.IpernityException | Throwed when Ipernity returned an error |
IpernityNET.IpernityObjects..::.ObjectNotConfiguredException | Throwed when an Ipernity object has not been configured. |