ListItem Element (DeploymentManifest - SPGenericObject)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

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

Definition

DECLARATION
<xs:element name="ListItem" type="SPListItem" />

USAGE
<SPObject>
        <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 />
        />
</SPObject

Type

SPListItem

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

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; required by import.
Name of the directory in which the item is stored.
DocId
Guid Simple Type (DeploymentManifest)
Optional; required by import.
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; required by import.
URL to the document item file.
GroupName
xs:string
Optional.
Id
Guid Simple Type (DeploymentManifest)
Optional; required by import.
Integer value that identifies the list item.
IntId
xs:int
Optional; required by import.
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; required by import.
Name of the person who created the file.
ParentFolderId
Guid Simple Type (DeploymentManifest)
Optional; required by import.
Unique identifier of the list item's parent folder in the database.
ParentListId
Guid Simple Type (DeploymentManifest)
Optional; required by import.
Unique identifier of the list item's parent list.
ParentWebId
Guid Simple Type (DeploymentManifest)
Optional; required by import.
Unique identifier of the list item's parent website.
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

Parent elements

See also