Compartilhar via


SP.ListItemCollection.getById(id) Method

Applies to: SharePoint Foundation 2010

Returns the list item with the specified list item identifier.

var value = SP.ListItemCollection.getById(id);

Parameters

  • id
    The list item identifier.

Type: Int32

Return Value

Type: SP.ListItem

Applies To

SP.ListItemCollection Class

Exceptions

  • [System.ArgumentException]
    List item does not exist. Error code: -2147024809.

See Also

Reference

SP.ListItemCollection Methods

SP.ListItemCollection Properties

SP Namespace