This topic has not yet been rated - Rate this topic

SPSite.FeatureDefinitions Property

SharePoint 2010

Gets the collection of feature definitions for the site collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public SPFeatureDefinitionCollection FeatureDefinitions { get; }

Property Value

Type: Microsoft.SharePoint.Administration.SPFeatureDefinitionCollection
A collection of SPFeatureDefinition objects, each of which defines a custom feature.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Returned SPFeatureDefinitionCollection is empty
The returned collection seems to be empty on a standard team site.

I'd suspect it should return all standard available SPFeatureDefinitions in the farm?