PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the .NET application displays the title of the SharePoint site in textBoxTitle

You have a SharePoint Web application that has the URL http;//intranet. You are creating a
Microsoft .NET Framework application that will display the title of the SharePoint site and will
execute outside of the SharePoint server. You create a textbox named textBoxTitle. You write the
following code segment. (Line numbers are included for reference only.) 01 ClientContext context
= new ClientContext(“http://intranet”); 02 03 Web site = context.Web; 04 context.Load(site) ; 05 06
textBoxTitle.Text = site.Title; You discover that line 0 6 generates an error. You need to ensure
that the .NET application displays the title of the SharePoint site in textBoxTitle. What should you
do?

PrepAway - Latest Free Exam Questions & Answers

A.
Add the following line of code at line 02. context.ExecuteQuery() ;

B.
Add the following line of code at line 05. context.ExecuteQuery();

C.
Add the following line of code at line 05. context.ValidateOnClient = true;

D.
Add the following line of code at line 02. context-ValidateOnClient = true;


Leave a Reply