Microsoft
70-573 · Question #260
70-573 Question #260: Real Exam Question with Answer & Explanation
Sign in or unlock 70-573 to reveal the answer and full explanation for question #260. The question stem and answer options stay visible for context.
Question
You have a SharePoint site collection that contains 100 subsites. You plan to create a Web Part. The Web Part will be deployed to each subsite. You need to ensure that the Web Part retrieves all of the files in the root directory of the current subsite. You write the following code segment. (Line numbers are included for reference only.) 01 SPSite site = SPContext.Current.Site; 02 SPWeb web = SPContext.Current.Web; 03 Which code segment should you add at line 03?
Options
- Asite.AllWebs[1].Files;
- BSite.RootWeb.Lists[0].Items;
- Cweb.Files;
- Dweb.RootFolder.SubFolders[0].Files ;
Unlock 70-573 to see the answer
You've previewed enough free 70-573 questions. Unlock 70-573 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.