Microsoft
70-573 · Question #177
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…
The correct answer is A. 03If prop.AfterProperties("vti_title").ToString(). See the full explanation below for the reasoning.
Question
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?
Options
- A03If prop.AfterProperties("vti_title").ToString().
- B03If prop.AfterProperties("vti_title").ToString().
- C03 If prop.BeforeProperties("vti_title").ToString().
- D03 If prop.ListItem("Title").ToString().Contains("IMPORTANT") Then
How the community answered
(44 responses)- A75% (33)
- B2% (1)
- C7% (3)
- D16% (7)
Community Discussion
No community discussion yet for this question.