Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ListItem Element (SPListItemVersionCollection)
Collapse the table of content
Expand the table of content

ListItem Element (DeploymentManifest - SPListItemVersionCollection)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Type
Attributes
Child Elements
Parent Elements

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

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.

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

<SPObject>
    <ListItem>
        <Versions>
            <ListItem>
                <Versions />
            </ListItem>
        </Versions>
    </ListItem>
</SPObject>
Show:
© 2015 Microsoft