ElementFile-Element (Feature)

Letzte Änderung: Donnerstag, 12. August 2010

Gilt für: SharePoint Foundation 2010

Inhalt dieses Artikels
Attribute
Untergeordnete Elemente
Übergeordnete Elemente
Vorkommen

Gibt eine für das Feature erforderliche Unterstützungsdatei an.

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

Attribute

Attribut

Beschreibung

Location

Erforderlicher Text-Wert. Gibt den relativen Dateipfad zu einer Unterstützungsdatei für das Feature an, beispielsweise "controls\searcharea.xml".

Untergeordnete Elemente

Keine

Übergeordnete Elemente

ElementManifests

Vorkommen

Minimum: 0

Maximum: Unbegrenzt

Beispiel

Im folgenden Beispiel wird das ElementFile-Element zur Bereitstellung von Sprachressourcen für die Lokalisierung eines Features verwendet.

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