Share via


ListItem Element (DeploymentManifest - SPListItemVersionCollection)

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.

Represents an instance of a SharePoint list item (SPListItem) object.

DECLARATION
<xs:element name="ListItem" 
        type="SPListItem" 
        minOccurs="1" maxOccurs="unbounded" 
/>

USAGE
<Versions>
    <ListItem
           Name="xs:string"
           DirName="xs:string"
           FileUrl="xs:string"
           Version="xs:string"
           Id="Guid"
           IntId="xs:int"
           DocId="Guid"
           Author="xs:string"
           ModifiedBy="xs:string"
           TimeCreated="xs:dateTime"
           TimeLastModified="xs:dateTime"
           ParentWebId="Guid"
           ParentListId="Guid"
           ParentFolderId="Guid"
           ModerationStatus="SPModerationStatusType"
           ModerationComment="xs:string"
           ContentTypeId="xs:string"
           ThreadIndex="xs:string"
           DocType="ListItemDocType"
           UserLoginName="xs:string"
           GroupName="xs:string"
           FailureMessage="xs:string"
       <Fields />
       <Versions />
       <Attachments />
       <Links />
       <EventReceivers />
    />
</Versions

Type

SPListItem

Attributes

Attribute

Type

Description

Author

xs:string

Optional. The user who created the list item.

ContentTypeId

xs:string

Optional.The content type associated with the item.

DirName

xs:string

Optional. Name of the directory in which the item is stored.

DocId

Guid Simple Type (DeploymentManifest)

Optional. Unique identifier of the list item file.

DocType

ListItemDocType Simple Type (DeploymentManifest)

Optional. Document type of the specified list item.

FailureMessage

xs:string

Optional. Message provided on export or import failure.

FileUrl

xs:string

Optional. URL to the document item file.

GroupName

xs:string

Optional.

Id

Guid Simple Type (DeploymentManifest)

Optional. Integer value that identifies the list item.

IntId

xs:int

Optional.

ModerationComment

xs:string

Optional. Represents Content Approval comments about the list tiem.

ModerationStatus

SPModerationStatusType Simple Type (DeploymentManifest)

Optional. Specifies the moderation status of the list item (Approved, Denied, Pending, Draft, Scheduled).

ModifiedBy

xs:string

Optional. Name of the user who last modified the file.

Name

xs:string

Optional. Name of the person who created the file.

ParentFolderId

Guid Simple Type (DeploymentManifest)

Optional. Unique identifier of the list item's parent folder in the database.

ParentListId

Guid Simple Type (DeploymentManifest)

Optional. Unique identifier of the list item's parent list.

ParentWebId

Guid Simple Type (DeploymentManifest)

Optional. Unique identifier of the list item's parent Web site.

ThreadIndex

xs:string

Optional.

TimeCreated

xs:dateTime

Optional. Time and date that the file was created.

TimeLastModified

xs:dateTime

Optional. Time and date that the file was last modified.

UserLoginName

xs:string

Optional.

Version

xs:string

Optional. Represents the version of the list item.

Child Elements

Attachments Element (DeploymentManifest)

EventReceivers Element (DeploymentManifest - SPListItem)

Fields Element (DeploymentManifest - SPList)

Links Element (DeploymentManifest - SPListItem)

Versions Element (DeploymentManifest - SPListItem)

Parent Elements

Versions Element (DeploymentManifest - SPListItem)

Remarks

This element has a recursive structure, as shown in the following code example.

<SPObject>
    <ListItem>
        <Versions>
            <ListItem>
                <Versions />
            </ListItem>
        </Versions>
    </ListItem>
</SPObject>

See Also

Reference

SPListItem

Concepts

DeploymentManifest Schema