Online Access Free 070-573 Practice Test
Exam Code: | 070-573 |
Exam Name: | TS: Office SharePoint Server, Application Development (available in 2010) |
Certification Provider: | Microsoft |
Free Question Number: | 150 |
Posted: | Sep 08, 2025 |
You create a Web Part.
The Web Part contains a grid view named GridView1 and the following code segment. (Line numbers are included for reference only.)
01 IntranetDataContext dc = new IntranetDataContext("http://intranet");
02 MyGridView.DataSource = from announce In dc.Announcements _ ;
03
04 Select announce IntranetDataContext is a LINQ context.
You need to ensure that GridView1 only displays items from Announcements that have an expiry date that is greater than or equal to the current date.
What should you do?
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 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.)
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 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?
You are creating a Business Connectivity Services (BCS) entity.
You need to ensure that all data returned by the entity is available in search results.
Which type of method instance should you implement?
You have a SharePoint list named Announcements.
You have an event receiver that contains the following code segment. (Line numbers are included for reference only.)
01 public override void ItemAdding(SPItemEventProperties properties)
02 {
03 if (properties.ListItem["Title"].ToString().Contains("secret"))
04 {
05
06 }
07 }
You need to prevent users from adding items that contain the word "secret" in the title to the list.
Which code segment should you add at line 05?