共用方式為


MetaData Element (List)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Used in list definitions (Schema.xml file) to separate list metadata from data.

<MetaData>
</MetaData>

Attributes

Attribute

Description

None

N/A

Child Elements

Default, ContentTypes, DefaultDescription, DocumentLibraryTemplate, Fields, Forms, Toolbar, Views

Parent Elements

List

Occurrences

Minimum: 0

Maximum: 1

Example

The following sample illustrates the skeletal structure of a list with MetaData and Data elements.

<List Name="Announcements" Title="My Announcements">
  <MetaData>
    <Fields>
      ...
    </Fields>
    <Views>
      ...
    </Views>
    <Forms>
      ...
    </Forms>
  </MetaData>
  <Data>
    <Rows>
      <Row>
        ...
    </Rows>
  </Data>
</List>

See Also

Reference

Data