Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

ElementFile Element (Feature)

Published: May 2010

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>
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.