Microsoft
70-573 · Question #272
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. foreach (SPCheckedOutFile file in. MNEMONIC RULE: "SPCheckedOutFile, file.Delete()" Represents a checked-out file in a document library or workspace. SPCheckedOutFile Class
Developing for Data Access
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
- Aforeach (SPCheckedOutFile file in
- Bforeach (SPItem file in SPContext.Current.Web.Lists["MyDocs"].Items)
- Cforeach (SPListItem file in ((SPDocumentLibrary)SPContext.
- Dforeach (SPCheckedOutFile file in
How the community answered
(59 responses)- A69% (41)
- B19% (11)
- C8% (5)
- D3% (2)
Explanation
MNEMONIC RULE: "SPCheckedOutFile, file.Delete()" Represents a checked-out file in a document library or workspace. SPCheckedOutFile Class
Topics
#SPCheckedOutFile#document library#checkout#required column
Community Discussion
No community discussion yet for this question.