ElementFile 元素(功能)
上次修改时间: 2015年3月9日
适用范围: SharePoint Foundation 2010
本文内容
属性
子元素
父元素
出现次数
指定功能所需的支持文件。
<ElementFile
Location = "Text">
</ElementFile>
属性
属性 |
说明 |
---|---|
Location |
必需属性,类型为 Text。指定功能支持文件的相对文件路径,例如 "controls\searcharea.xml"。 |
子元素
无 |
父元素
出现次数
最小值:0 最大值:无限制 |
示例
在以下示例中,ElementFile 元素用于部署用于本地化功能的语言资源。
<Feature xmlns="https://schemas.microsoft.com/sharepoint/"
Id="4f670c98-0b81-41e0-8793-ab4325c57938"
Title="$Resources:WeeklyStatusListFeature"
Description="$Resources:WeeklyStatusListFeatureDesc"
Scope="Web">
<ActivationDependencies>
<ActivationDependency FeatureId="e874ff63-dd9b-49ec-a96e-6e4ba163838e"
FeatureDescription="$Resources:WeeklyStatusReportFeatureDesc"
FeatureTitle="$Resources:WeeklyStatusReportFeature" />
</ActivationDependencies>
<ElementManifests>
<ElementManifest Location="ListInstance1\Elements.xml" />
<ElementManifest Location="Resources\Elements.xml" />
<ElementFile Location="Resources\Resources.resx" />
<ElementFile Location="Resources\Resources.es-es.resx" />
<ElementFile Location="Resources\Resources.en-us.resx" />
</ElementManifests>
</Feature>