Export (0) Print
Expand All

SPListItemCollection Members

Windows SharePoint Services 3

Represents a collection of SPListItem objects.

The SPListItemCollection type exposes the following members.

  NameDescription
Public property Count Gets the number of list items in the collection, excluding folders. (Overrides SPBaseCollection.Count.)
Public property Item[Guid] Gets the item object with the specified GUID from the collection. In C#, this property is the indexer for the SPListItemCollection class.
Public property Item[Int32] Gets the list item at the specified index in the collection. In C#, this property is an indexer for the SPListItemCollection class.
Public property List Gets the parent list of the collection.
Public property ListItemCollectionPosition Gets an object that is used to obtain the next set of rows in a paged view of a list.
Public property NumberOfFields Gets the number of fields that are represented in the collection.
Public property QueryFieldNames Gets a collection of query field names.
Public property UpgradedPersistedProperties Gets the collection of field names and values for fields that were deleted or changed. (Inherited from SPAutoSerializingObject.)
Public property Xml Gets all the data in the collection in XMLDATA format.
Public property XmlDataSchema Gets the schema that defines the XML that is returned by the Xml property.
Protected property XMLUseAllProperties Gets a Boolean value that indicates whether the extended properties of the collection are serialized.
Top

  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

  NameDescription
Protected field m_iRowCount This member is reserved for internal use and is not intended to be used directly from your code.
Top

Community Additions

ADD
Show:
© 2015 Microsoft