次の方法で共有


SPFeatureDefinition.GetElementDefinitions method

Returns the collection of element definitions contained within the Feature definition.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetElementDefinitions ( _
    ciElements As CultureInfo _
) As SPElementDefinitionCollection
'Usage
Dim instance As SPFeatureDefinition
Dim ciElements As CultureInfo
Dim returnValue As SPElementDefinitionCollection

returnValue = instance.GetElementDefinitions(ciElements)
public SPElementDefinitionCollection GetElementDefinitions(
    CultureInfo ciElements
)

Parameters

Return value

Type: Microsoft.SharePoint.Administration.SPElementDefinitionCollection
An SPElementDefinitionCollection object that represents the element definitions.

Exceptions

Exception Condition
ArgumentException

Element Manifest Location is a null reference (Nothing in Visual Basic) or empty.

Element Manifest Location is not the directory nor is it a subdirectory of the directory in which feature.xml resides.

Remarks

Feature definitions define where associated files are located inside a solution. During deployment, feature manifests are parsed to find assembly and _layouts files. All other feature files are copied to the feature directory.

See also

Reference

SPFeatureDefinition class

SPFeatureDefinition members

Microsoft.SharePoint.Administration namespace

Other resources

ElementManifest Element