Which code segments should you add at lines 07 and 08?

You have the following event receiver. (Line numbers are included for reference only.)

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?
A. 04 properties.ReceiverData = "/_layouts/customErrorPage.aspx";
05 properties.Cancel = true;
B. 04 properties.RedirectUrl = "/_layouts/customErrorPage.aspx";
05 properties.Cancel = true;
C. 04 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl;
05 properties.ReceiverData = "/_layouts/customErrorPage.aspx";
D. 04 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl;
05 properties.RedirectUrl = "/_layouts/customErrorPage.aspx";

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.