Search This Blog

2009-04-30

SPListItem

What is SPListItem/What are the mrthod and properties of SPListItem/How can we use SPListItem
SPListItem object represents a list item or row in a sharepoint list.

Properties:-

Attachments
Gets the collection of attachments that are associated with the item.
ContentType
Gets the content type that is associated with the item.
Fields
Overridden. Gets or sets the collection of all fields in the parent of the item.
File
Gets the file that is represented by the item from a document library.
Folder
Gets a folder object that is associated with a folder item.
ID
Overridden. Gets the integer that identifies the item.
ListItems
Gets the parent collection of list item objects to which the item belongs.
MissingRequiredFields
Gets a Boolean value that specifies whether required fields are missing from the item's properties.
Name
Gets the name of the item.
ParentList
Gets the parent list of the list item.
Tasks
Gets the collection of workflow tasks for the item.
Title
Gets the title of the item.
UniqueId
Gets the GUID that uniquely identifies the item for the internal database.
Url
Gets the site-relative URL of the item.

Methods:-


Copy
Overloaded. Copies an item.
CopyFrom
Overloaded. Overwrites the current item.
CopyTo
Copies the item to the specified destination.
Delete
Overridden. Deletes the item.
Update
Overridden. Updates the database with changes that are made to the list item.

No comments: