nerdexam
Microsoft

70-573 · Question #266

70-573 Question #266: Real Exam Question with Answer & Explanation

Sign in or unlock 70-573 to reveal the answer and full explanation for question #266. 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.) 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?

Options

  • Aproperties.Cancel = false;
  • Bproperties.Cancel = true;
  • Cproperties.Status = SPEventReceiverStatus.Continue;
  • Dreturn;

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.

Full 70-573 Practice