Microsoft
70-573 · Question #221
You have a document library named MyDocs. MyDocs has a column named Column1. Column1 is a required column. You discover that many documents are checked out because users fail to enter a value for…
The correct answer is A. For Each file As SPCheckedOutFile In. See the full explanation below for the reasoning.
Question
You have a document library named MyDocs. MyDocs has a column named Column1. Column1 is a required column. You discover that many documents are checked out because users fail to enter a value for Column1. You need to create a Web Part to delete the documents. Which code segment should you include in the Web Part?
Options
- AFor Each file As SPCheckedOutFile In
- BFor Each file As SPItem In SPContext.Current.Web.Lists("MyDocs").
- CFor Each file As SPListItem In
- DFor Each file As SPCheckedOutFile In
How the community answered
(34 responses)- A76% (26)
- B6% (2)
- C15% (5)
- D3% (1)
Community Discussion
No community discussion yet for this question.