SPFeatureDefinition.GetElementDefinitions Method
Returns the collection of element definitions contained within the Feature definition.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public SPElementDefinitionCollection GetElementDefinitions(
CultureInfo ciElements
)
Parameters
- ciElements
- Type: System.Globalization.CultureInfo
A CultureInfo object that represents the regional settings of the Feature.
Return Value
Type: Microsoft.SharePoint.Administration.SPElementDefinitionCollectionAn SPElementDefinitionCollection object that represents the element definitions.
| Exception | Condition |
|---|---|
| ArgumentException |
Element Manifest Location is null or empty. Element Manifest Location is not the directory nor is it a subdirectory of the directory in which feature.xml resides. |