다음을 통해 공유


ListItem Element (DeploymentManifest - SPGenericObject)

Applies to: SharePoint Foundation 2010

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

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

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 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

SPObject Element (DeploymentManifest)

See Also

Reference

SPListItem

Concepts

DeploymentManifest Schema