70-573 · Question #262
You have a SharePoint farm that has more than 100 custom Features. You upgrade several Features in the farm. You need to ensure that the site collection uses the most up-to-date versions of the…
The correct answer is A. SPWebServiceCollection webServices = new. MNEMONIC RULE: "large chunk of code, SPFeatureScope.Site" Since we are working with the site collection, we need to use SPFeatureScope.Site, not SPFeatureScope.Web. needsUpgrade (Boolean): if true, only features that need to be upgraded are included. If false, only featuresthat…
Question
You have a SharePoint farm that has more than 100 custom Features. You upgrade several Features in the farm. You need to ensure that the site collection uses the most up-to-date versions of the Features. Only Features that require an upgrade must be evaluated. Which code segment should you use?
Options
- ASPWebServiceCollection webServices = new
- BSPWebServiceCollection webServices = new
- CSPSite site = SPContext.Current.Site;
- DSPWeb web = SPContext.Current.Web;
How the community answered
(41 responses)- A85% (35)
- B2% (1)
- C5% (2)
- D7% (3)
Explanation
MNEMONIC RULE: "large chunk of code, SPFeatureScope.Site" Since we are working with the site collection, we need to use SPFeatureScope.Site, not SPFeatureScope.Web. needsUpgrade (Boolean): if true, only features that need to be upgraded are included. If false, only featuresthat do not need to be upgraded are included. SPSite.QueryFeatures Method (Guid, Boolean)
Topics
Community Discussion
No community discussion yet for this question.