我需要在 ManageFeatures.aspx 页面中获取 SPFeatureDefinitions 列表。大概应该是这样的:
...
using (SPWeb web = spSite.OpenWeb())
foreach (var spfeature in SPFarm.Local.FeatureDefinitions)
{
result.Add(spfeature);
}
但是我怎么能确定它spfeature
可以被激活web
呢?