Which approach should you recommend?

You are planning a feature upgrade for a SharePoint 2010 farm. The original feature with a version number of
1.0.0.0 is activated in numerous scopes within the farm. You have designed a new version of the feature, 2.0.0.0,
which has been deployed and activated in many locations but not all.
You need to recommend a way to use the object model to determine if the version number of each feature instance is less than the 2.0.0.0 version in all of the locations.
Which approach should you recommend?

You are planning a feature upgrade for a SharePoint 2010 farm. The original feature with a version number of
1.0.0.0 is activated in numerous scopes within the farm. You have designed a new version of the feature, 2.0.0.0,
which has been deployed and activated in many locations but not all.
You need to recommend a way to use the object model to determine if the version number of each feature instance is less than the 2.0.0.0 version in all of the locations.
Which approach should you recommend?

A.
Use the object model to update the Version attribute of the feature in the existing Feature.xml file.

B.
Call the Query Features method for each location hosting the feature in the various scopes.

C.
Programmatically add an <Upgrade Actions> section to the Feature.xml file that specifies the new version number for the feature.

D.
Create a feature receiver that calls the Upgrade method of the SPFeatures class for the feature.



Leave a Reply 1

Your email address will not be published. Required fields are marked *