Export (0) Print
Expand All

SPListItem.Update Method

Updates the database with changes that are made to the list item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[ClientCallableExceptionConstraintAttribute(FixedId = "thresholdexceeded", ErrorCode = , Condition = "Throttling limit is exceeded by the operation.", 
	ErrorType = typeof(SPQueryThrottledException))]
[ClientCallableExceptionConstraintAttribute(FixedId = "4", ErrorCode = , Condition = "ParseAndSetFieldValue or SetFieldValue tried to update a readonly field. ", 
	ErrorType = typeof(SPException))]
[ClientCallableExceptionConstraintAttribute(FixedId = "9", Condition = "Operation is not supported.", 
	ErrorType = typeof(InvalidOperationException))]
[ClientCallableExceptionConstraintAttribute(FixedId = "2", Condition = "User does not have permissions to update this list item.", 
	ErrorType = typeof(UnauthorizedAccessException))]
[ClientCallableExceptionConstraintAttribute(FixedId = "3", Condition = "Item does not exist. It may have been deleted by another user.", 
	ErrorType = typeof(ArgumentException))]
[ClientCallableExceptionConstraintAttribute(FixedId = "8", Condition = "Field and list validation have failed.", 
	ErrorCode = , ErrorType = typeof(SPListDataValidationException))]
[ClientCallableExceptionConstraintAttribute(FixedId = "saveconflict", ErrorCode = , Condition = "Save Conflict. Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.", 
	ErrorType = typeof(SPException))]
[ClientCallableExceptionConstraintAttribute(FixedId = "1", ErrorCode = , Condition = "Expanded recurrence items cannot be updated.To add an item to a document library, use SPFileCollection.Add().The workflow's parent item associated with this task is currently in the recycle bin, which prevents the task from being completed.", 
	ErrorType = typeof(SPException))]
[ClientCallableMethodAttribute(ReturnThisObjectState = true, CheckObjectVersion = true)]
[ClientCallableExceptionConstraintAttribute(FixedId = "5", Condition = "A duplicate value was found.", 
	ErrorCode = , ErrorType = typeof(SPDuplicateValuesFoundException))]
[ClientCallableExceptionConstraintAttribute(FixedId = "6", Condition = "List validation has failed.", 
	ErrorCode = , ErrorType = typeof(SPListDataValidationException))]
[ClientCallableExceptionConstraintAttribute(FixedId = "7", Condition = "Field validation has failed.", 
	ErrorCode = , ErrorType = typeof(SPListDataValidationException))]
public override void Update()


The list item has been modified since it was created.


The data that was supplied for updating an item is invalid.


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

For information about specific data formats that are used for list items in SharePoint Foundation, see the SPListItem class.

© 2015 Microsoft