共用方式為


Row 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 within the Data element in a list definition to provide a set of default data when a list is instantiated during site provisioning.

<Row>
</Row>

Attributes

Attribute

Description

None

N/A

Child Elements

Field

Parent Elements

Rows

Example

The following excerpt from the Schema.xml file for an announcements list defines one row of fields for the welcome page.

<Data>
   <Rows>
      <Row>
         <Field Name="Title">Welcome to your new team Web site!</Field>
         <Field Name="Body">You can use this site to share information 
            with members of the site. To add a new announcement, click 
            "Add new announcement" below. This is a great way to 
            communicate news with your team.</Field>
         <Field Name="Expires"><ows:TodayISO/></Field>
      </Row>
   </Rows>
</Data>