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?
A.
07 properties. RedirectUrl = “/ layouts/custoroErrorPage. aspx “; 08 properties.Cancel = true;
B.
07 properties.ErrorMessage = “<Pedirect URL = */_layouts/ customErrorPage.aspx’ />”; 08
properties.Cancel = true;
C.
07 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl ; 08
properties.RedirectUrl – “/_layouts/ customErrorPage.ospx “;
D.
07 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl ; 08
properties.ErrorHessage = “<Redirect URL > ‘_/ layouts/customErrorPage.aspx ‘ />”;