private void AddFeaturesForSC(SPSite col, TreeNode pnode) { SPFeatureScope Scope = SPFeatureScope.Site; SPFeatureCollection active = col.Features; List <SPFeatureDefinition> fds = SPBroker.GetAllFeaturesForScope(Scope); AddFeaturesForScope(pnode, fds, active); }
private void AddFeaturesForWeb(SPWeb pw, TreeNode pnode) { SPFeatureScope Scope = SPFeatureScope.Web; SPFeatureCollection active = pw.Features; List <SPFeatureDefinition> fds = SPBroker.GetAllFeaturesForScope(Scope); AddFeaturesForScope(pnode, fds, active); }
private void AddFeaturesForWA(SPWebApplication wa, TreeNode pnode) { SPFeatureScope Scope = SPFeatureScope.WebApplication; SPFeatureCollection active = wa.Features; List <SPFeatureDefinition> fds = SPBroker.GetAllFeaturesForScope(Scope); AddFeaturesForScope(pnode, fds, active); }