다음을 통해 공유


ElementFile Element (Feature)

Applies to: SharePoint Foundation 2010

Specifies a support file required for the Feature.

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

Attributes

Attribute

Description

Location

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

Child Elements

None

Parent Elements

ElementManifests

Occurrences

Minimum: 0

Maximum: Unbounded

Example

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

<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>