Update Method

The Update method of the SPListItem class updates the database with changes made to the list item.

Remarks

The Update method returns a Microsoft.SharePoint.SPException exception if the list item has been modified since it was created. For instance, this exception is returned if the code returns an SPListItem object but code in a different HTTP request has updated the item previously. This exception is also raised when the data supplied for updating an item is invalid.

Note  When a document is checked out from a document library, its metadata cannot be modified using the Update method.

For information about specific data formats used for list items in Windows SharePoint Services, see the SPListItem class.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security