Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SPListItemCollection Methods

SPListItemCollection Methods

Windows SharePoint Services 3

The SPListItemCollection type exposes the following members.

  NameDescription
Public method Add() Creates an item but requires the Update method to actually add the item to the list.
Public method Add(String, SPFileSystemObjectType) Creates an item that uses the specified folder URL and object type but requires the Update method to actually add the item to the list.
Public method Add(String, SPFileSystemObjectType, String) Creates an item that uses the specified folder URL, object type, and leaf name but requires the Update method to actually add the item to the list.
Public method Delete Deletes the item at the specified index in the collection.
Public method DeleteItemById Deletes the item with the specified integer ID from the collection.
Protected method EnsureListItemsData Checks data for the items and, if necessary, updates the data to ensure it is current.
Protected method EnsureListScopeData Checks scope data for the items and, if necessary, updates it to ensure that the most current data is used.
Protected method EnsureListScopeDict Checks the scope dictionary for the items and, if necessary, updates it to ensure that the most current data is used.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetDataTable Returns the collection of list items as a data table.
Public method GetHashCode (Inherited from Object.)
Public method GetItemById Returns the item with the specified integer ID from the collection.
Public method GetObjectData Retrieves the data required to serialize the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Protected method Init Initializes the specified list, query, and view.
Protected method ListScopeXmlHelper Returns the scope XML of the collection.
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
Public method ReorderItems Reorders items in the list.
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)
Top

Community Additions

ADD
Show:
© 2015 Microsoft