SPFeatureDefinitionCollection Class
SharePoint 2010
Represents a collection of SPFeatureDefinition objects.
System.Object
Microsoft.SharePoint.Administration.SPPersistedObjectCollection<SPFeatureDefinition>
Microsoft.SharePoint.Administration.SPPersistedChildCollection<SPFeatureDefinition>
Microsoft.SharePoint.Administration.SPFeatureDefinitionCollection
Microsoft.SharePoint.Administration.SPPersistedObjectCollection<SPFeatureDefinition>
Microsoft.SharePoint.Administration.SPPersistedChildCollection<SPFeatureDefinition>
Microsoft.SharePoint.Administration.SPFeatureDefinitionCollection
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Use the FeatureDefinitions property of the SPFarm class to get the collection of Feature definitions installed in the server farm.
Use the FeatureDefinitions property of the SPSite class to get the collection of Feature definitions installed in the site collection.
To add a Feature definition to the collection, use one of the Add methods of the SPFeatureDefinitionCollection class.