Condividi tramite


SP.List Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.List class.

Methods

Name

Description

addItem

Creates a new list item in the list.

deleteObject

Deletes the list.

getChanges

Returns the collection of changes from the change log that have occurred within the list, based on the specified query.

getItemById

Returns the list item with the specified list item identifier.

getItems

Returns a collection of items from the list based on the specified query.

getRelatedFields

Returns a collection of lookup fields that use this list as a data source and that have FieldLookup.IsRelationship set to true.

getRelatedFieldsExtendedData

This member is reserved for internal use and is not intended to be used directly from your code.

getView

Returns the list view with the specified view identifier.

initPropertiesFromJson

This member is reserved for internal use and is not intended to be used directly from your code.

List

Initializes a new instance of the SP.List Class.

recycle

Moves the list to the Recycle Bin and returns the identifier of the new Recycle Bin item.

update

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

Applies To

SP.List Class

See Also

Reference

SP.List Properties

SP Namespace