SP.ListItem.update() Method

Applies to: SharePoint Foundation 2010

Commits changed properties of the list item.

SP.ListItem.update();

Applies To

SP.ListItem Class

Exceptions

  • [Microsoft.SharePoint.SPDuplicateValuesFoundException]
    A duplicate value was found and field values must be unique. Error code: -2130575169.
  • [Microsoft.SharePoint.SPException]
    Field is read-only. Error code: -2147352571. List item is an instance of a recurring event which is not a recurrence exception, the list item is a workflow task whose parent workflow is in the recycle bin, or the parent list is a document library. Error code: -2146232832. List item was modified on the server so changes cannot be committed. Error code: -2130575305.
  • [Microsoft.SharePoint.SPListDataValidationException]
    Data validation has failed on the field. Error code: -2130575163. Data validation has failed on the list. Error code: -2130575162. Data validation has failed on the field and the list. Error code: -2130575161.
  • [Microsoft.SharePoint.SPQueryThrottledException]
    Throttling limit is exceeded by the operation. Error code: -2147024860.
  • [System.ArgumentException]
    List item does not exist. Error code: -2147024809.
  • [System.InvalidOperationException]
    List does not support this operation. Error code: -1.
  • [System.UnauthorizedAccessException]
    The current user has insufficient permissions. Error code: -2147024891.

See Also

Reference

SP.ListItem Methods

SP.ListItem Properties

SP Namespace