PrepAway - Latest Free Exam Questions & Answers

Which code segments should you add at lines 03, 04 and 05?

You are creating an event receiver. The event receiver will have a field named Title and a field
named Priority. You write the following code segment for the event receiver. (Line numbers are
included for reference only.) 01 Public Overloads Overrides Sub ItemUpdating(ByVal prop As
SPItemEventProperties) 02 MyBase.ItemUpdating(prop) 03 04 05 06 End Sub You need to
ensure that when the Title field is changed to include the word IMPORTANT, the Priority field is
set to URGENT. Which code segments should you add at lines 03, 04 and 05?

PrepAway - Latest Free Exam Questions & Answers

A.
03If prop.AfterProperties(“vti_title”).ToString().Contains(“IMPORTANT”) Then 04
prop.AfterProperties(“Priority”) = “URGENT” 05 End If

B.
03If prop.AfterProperties(“vti_title”).ToString().Contains(“IMPORTANT”) Then 04
prop.ListItem(“Priority”) = “URGENT” 05 End If

C.
03 If prop.BeforeProperties(“vti_title”).ToString().Contains(“IMPORTANT”) Then 04
prop.AfterProperties(“Priority”) = “URGENT” 05 End If

D.
03 If prop.ListItem(“Title”).ToString().Contains(“IMPORTANT”) Then 04
prop.AfterProperties(“Priority”) = “URGENT” 05 End If


Leave a Reply