70-573 · Question #114
You need to delete the previous versions of all documents in a document library. The deleted versions of the documents must be retained in the SharePoint Recycle Bin. What should you do?
The correct answer is D. For each document, call the RecycleAll method of the Versions property. MNEMONIC RULE: "all previous versions to Recycle Bin = RecycleAll of the Versions" Recycles the version collection except for the current version. SPListItemVersionCollection.RecycleAll Method us/library/microsoft.sharepoint.splistitemversioncollection.recycleall.aspx
Question
You need to delete the previous versions of all documents in a document library. The deleted versions of the documents must be retained in the SharePoint Recycle Bin. What should you do?
Options
- AFor the document library, call the Recycle method.
- BFor the document library, call the Delete method.
- CFor each document, call the DeleteAll method of the Versions property.
- DFor each document, call the RecycleAll method of the Versions property.
How the community answered
(36 responses)- A3% (1)
- B6% (2)
- C11% (4)
- D81% (29)
Explanation
MNEMONIC RULE: "all previous versions to Recycle Bin = RecycleAll of the Versions" Recycles the version collection except for the current version. SPListItemVersionCollection.RecycleAll Method us/library/microsoft.sharepoint.splistitemversioncollection.recycleall.aspx
Topics
Community Discussion
No community discussion yet for this question.