I need to get list of SPFeatureDefinitions like in ManageFeatures.aspx page. Probably it should be smth like this:
...
using (SPWeb web = spSite.OpenWeb())
foreach (var spfeature in SPFarm.Local.FeatureDefinitions)
{
result.Add(spfeature);
}
But how can I be sure that spfeature
could be activated on web
?
try using if (spfeature.Scope = SPFeatureScope.Web)