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 Overloads Overrides
Sub CreateChildControls() 02 MyBase.CreateChildControls() 03
SPSecurity.RunWithElevatedPrivileges(ElevatedCode) 04 05 End Sub 06 Private Sub
ElevatedCode() 07 Dim ListCount As New Label() 08 ListCount.Text = [String].Format (“There are
{0} Lists”, SPContext.Current.Web.Lists.Count) 09 Controls.Add(ListCount) 10 End Sub 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?
A.
09
B.
02
C.
03
D.
08