Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ElementFile Element (Feature)

Last modified: August 12, 2010

Applies to: SharePoint Foundation 2010

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Specifies a support file required for the Feature.


<ElementFile
  Location = "Text">
</ElementFile>

Attribute

Description

Location

Required Text. Specifies the relative file path to a support file for the Feature, for example, "controls\searcharea.xml".

Minimum: 0

Maximum: Unbounded

In the following example, the ElementFile element is used to deploy language resources used to localize a Feature.

<Feature xmlns="http://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>
Show:
© 2015 Microsoft