PrepAway - Latest Free Exam Questions & Answers

Category: 70-573 (v.1)

Exam 70-573: TS: Microsoft SharePoint 2010, Application Development (update October 30th, 2015)

Which code segment should you add at line 04?

You create a Web Part. You need to display the number of visits to a SharePoint site collection in
a label named LblVisits. You write the following code segment. (Line numbers are included for
reference only.) 01 RunWithElevatedPrivileges(ElevateSub) 02 Private Sub ElevatedSub() 03 Try
04 05 LblVisits.Text = site.Usage.Visits.ToString() 06 Finally 07 … 08 End Try 09 End Sub Which
code segment should you add at line 04?

Which code segment should you add at line 03?

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.) 01Dim site As SPSite = SPContext.Current.Site 02Dim
web As SPWeb = SPContext.Current.Web 03 Which code segment should you add at line 03?


Page 17 of 24« First...10...1516171819...Last »