Microsoft
70-573 · Question #216
70-573 Question #216: Real Exam Question with Answer & Explanation
Sign in or unlock 70-573 to reveal the answer and full explanation for question #216. The question stem and answer options stay visible for context.
Question
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.) 01Public Overloads Overrides Sub ItemAdding(ByVal properties As SPItemEventProperties) 02If properties.ListItem("Title").ToString().Contains("secret") Then 03 04End If 05End Sub 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 03?
Options
- Aproperties.Cancel = false
- Bproperties.Cancel = true
- Cproperties.Status = SPEventReceiverStatus.Continue
- DExit Sub
Unlock 70-573 to see the answer
You've previewed enough free 70-573 questions. Unlock 70-573 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.