nerdexam
Microsoft

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

Developing for Data Access

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)
  • A
    3% (1)
  • B
    6% (2)
  • C
    11% (4)
  • D
    81% (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

#document versioning#Recycle Bin#RecycleAll#SPFileVersionCollection

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice