PrepAway - Latest Free Exam Questions & Answers

Which line of code should you identify?

You are creating a Web Part for SharePoint Server 2010. The Web Part contains the following
code segment. (Line numbers are included for reference only.) 01 protected override void
CreateChildControls () 02 { 03 base.CreateChildControls (); 04
SPSecurity.FunWithElevatedPrivileges ( 05 delegate 06 { 07 Label ListCount = new Label (); 08
ListCount.Text = String.Format (“There are {0> Lists”, SPContext.Current.Heb.Lists.Count ); 09
Controls.Add ( ListCount ) ; 10 }} 11 } You need to identify which line of code prevents the Web
Part from being deployed as a sandboxed solution. Which line of code should you identify?

PrepAway - Latest Free Exam Questions & Answers

A.
03

B.
08

C.
04

D.
09


Leave a Reply