nerdexam
Microsoft

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…

Developing SharePoint Solutions

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)
  • A
    85% (35)
  • B
    2% (1)
  • C
    5% (2)
  • D
    7% (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

#Feature upgrade#SPWebServiceCollection#NeedsUpgrade#site collection

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice