Microsoft
70-576 · Question #127
You are designing a SharePoint 2010 feature that will be included in a solution package. You have added a feature receiver to your feature. You need to ensure that the code in the feature receiver…
The correct answer is A. Add your code to the FeatureInstalled method of the feature receiver. See the full explanation below for the reasoning.
Question
You are designing a SharePoint 2010 feature that will be included in a solution package. You have added a feature receiver to your feature. You need to ensure that the code in the feature receiver executes when the solution package is deployed to the Web front-end servers. Which approach should you recommend?
Options
- AAdd your code to the FeatureInstalled method of the feature receiver.
- BAdd your code to the FeatureActivated method of the feature receiver.
- CAdd a FeatureInstalled node referencing the feature receiver assembly to the solution
- DAdd a FeatureActivated node referencing the feature receiver assembly to the solution
How the community answered
(16 responses)- A81% (13)
- C6% (1)
- D13% (2)
Community Discussion
No community discussion yet for this question.