nerdexam
Microsoft

70-573 · Question #96

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

Sign in or unlock 70-573 to reveal the answer and full explanation for question #96. The question stem and answer options stay visible for context.

Question

You have the following event receiver. (Line numbers are included for reference only.) 01 public override void FieldDeleting(SPListEventProperties properties) 02 { 03 base.FieldDeleting(properties); 04 05 if (properties.FieldName == "Status") 06 { 07 08 09 } 10 } You need to cancel the operation and redirect the user to a custom error page if the name of the deleted field is Status. Which code segments should you add at lines 07 and 08?

Options

  • A07 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl ;
  • B07 properties. RedirectUrl = "/ layouts/custoroErrorPage. aspx ";
  • C07 properties.ErrorMessage = "<Pedirect URL = */_layouts/ customErrorPage.aspx' />";
  • D07 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl ;

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