Fichiers Feature.xml
S’applique à : SharePoint 2016 | SharePoint Foundation 2013 | SharePoint En ligne | SharePoint Server 2013
Dans un fichier Feature.xml, l'élément Feature définit une fonctionnalité et spécifie l'emplacement des assemblys, fichiers, dépendances ou propriétés qui prennent en charge la fonctionnalité.
Pour plus d’informations sur l’endroit où créer et comment implémenter des fichiers Feature.xml, voir Utilisation des fonctionnalités dans SharePoint Foundation.
Pour plus d’informations sur la mise à niveau d’une fonctionnalité, voir Upgrading Features.
Exemple
L'exemple suivant montre comment utiliser un fichier Feature.xml pour spécifier les dépendances de l'activation, des champs spéciaux et des chemins d'accès relatifs dans les fichiers de définition d'élément.
<Feature
Id="11111111-1111-1111-1111-11111111111"
Title="Location Services"
Description="This Feature contains lists and parts that let you link location data to your customer lists."
Scope="Web">
<ActivationDependencies>
<ActivationDependency
FeatureId="11111111-1111-1111-1111-111111111111" />
</ActivationDependencies>
<ElementManifests>
<ElementManifest
Location="Location\LocationPart.xml"/>
<ElementManifest
Location="CustomerLocation\CustomerLocationList.xml"/>
<ElementFile
Location="test.aspx"/>
</ElementManifests>
<Properties>
<Property
Key="Color"
Value="Blue"/>
<Property
Key="Shape"
Value="Triangle"/>
</Properties>
</Feature>