Microsoft
70-573 · Question #42
You have a SharePoint list named Projects and a site column named PrivateColumn. You need to prevent users from adding PrivateColumn to the Projects list. Users must be able to add any other site…
The correct answer is B. Create an event receiver that inherits SPListEventReceiver and override FieldAdding. MNEMONIC RULE: "FieldAdding to a List"
Developing Business Logic
Question
You have a SharePoint list named Projects and a site column named PrivateColumn. You need to prevent users from adding PrivateColumn to the Projects list. Users must be able to add any other site column to the Projects list. What should you do?
Options
- ACreate an event receiver that inherits SPListEventReceiver and override FieldAdded.
- BCreate an event receiver that inherits SPListEventReceiver and override FieldAdding.
- CCreate an event receiver that inherits SPItemEventReceiver and override ItemAdded.
- DCreate an event receiver that inherits SPItemEventReceiver and override ItemAdding.
How the community answered
(45 responses)- A4% (2)
- B76% (34)
- C13% (6)
- D7% (3)
Explanation
MNEMONIC RULE: "FieldAdding to a List"
Topics
#event receiver#SPListEventReceiver#FieldAdding#site columns
Community Discussion
No community discussion yet for this question.