Feature.xml ファイル
適用対象: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013
Feature.xml ファイルでは Feature 要素がフィーチャーを定義します。また、アセンブリの場所、ファイル、依存関係、またはそのフィーチャーをサポートするプロパティを指定します。
作成する場所とFeature.xml ファイルを実装する方法については、「 SharePoint Foundation での機能の使用」を参照してください。
フィーチャーのアップグレード方法については、「Upgrading Features」を参照してください。
例
次の例では、Feature.xml ファイルを使用して、アクティブ化の依存関係、特殊フィールド、および要素定義ファイルの相対パスを指定する方法を示しています。
<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>