nerdexam
Microsoft

70-573 · Question #270

You are creating a Microsoft .NET Framework application that will display the title of the SharePoint Web application and will execute outside of the SharePoint server. You create a textbox named…

The correct answer is C. Add the following line of code at line 05. MNEMONIC RULE: "ExecuteQuery() after Load()" Client Context as Central Object

Developing for Client Applications

Question

You are creating a Microsoft .NET Framework application that will display the title of the SharePoint Web application 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.) 02 03 Web site = context.Web; 04 context.Load(site); 05 06 textBoxTitle.Text = site.Title; You discover that line 04 generates an error. You need to ensure that the .NET application displays the title of the SharePoint Web application in textBoxTitle. What should you do?

Options

  • AAdd the following line of code at line 02:
  • BAdd the following line of code at line 02:
  • CAdd the following line of code at line 05:
  • DAdd the following line of code at line 05:

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    7% (2)
  • C
    74% (20)
  • D
    15% (4)

Explanation

MNEMONIC RULE: "ExecuteQuery() after Load()" Client Context as Central Object

Topics

#client object model#ExecuteQuery#remote application#ClientContext

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice