| Exam Code/Number: | 070-573Join the discussion |
| Exam Name: | TS: Office SharePoint Server, Application Development (available in 2010) |
| Certification: | Microsoft |
| Question Number: | 150 |
| Publish Date: | Jun 05, 2026 |
|
Rating
100%
|
|
You have a Microsoft .NET Framework console application that uses the SharePoint client object model.
The application contains the following code segment. (Line numbers are included for reference only.)
01 ClientContext cCtx = new ClientContext("http://intranet/hr");
02 List sharedDocList = cCtx.Web.Lists.GetByTitle("Shared Documents");
03 CamlQuery camlQuery = new CamlQuery();
04 camlQuery.ViewXml =
05 @"<View>
06 <Query>
07 <Where>
08 <Eq>
09
10 <Value Type='Text'>Doc1.docx</Value>
11 </Eq>
12 </Where>
13 </Query>
14 </View>";
15 ListItemCollection docLibItems = sharedDocList.GetItems(camlQuery);
16 cCtx.Load(sharedDocList);
17 cCtx.Load(docLibItems);
18 cCtx.ExecuteQuery();
You need to ensure that the application queries Shared Documents for a document named Doc1.docx.
Which code element should you add at line 09?
You have a SharePoint site that uses a master page named Master1.master.
You create a custom user control named MySearch.ascx.
You need to change the default search box to MySearch.ascx.
What should you do?
You need to create a Web Part that displays all social tags entered by users.
Which code segment should you use?
You have a Web Part that contains the following code segment. (Line numbers are included for reference only.)
01 protected void Page_Load(object sender, EventArgs e)02 {
03 SPSite site = new SPSite("http://www.contoso.com/default.aspx");
04 {
05 SPWeb web = site.OpenWeb();
06
07 }
08 }
You deploy the Web Part to a SharePoint site.
After you deploy the Web Part, users report that the site loads slowly. You need to modify the Web Part to prevent the site from loading slowly.
What should you do?
You have a SharePoint site that uses the default search settings.
You create a new Search Center.
You need to ensure that the new Search Center is the default Search Center for the site.
What should you modify?