Export (0) Print
Expand All

SPListItemCollection Members

Represents a collection of SPListItem objects.

The SPListItemCollection type exposes the following members.

  Name Description
Public property Count Gets the number of list items in the collection, excluding folders. (Overrides SPBaseCollection.Count.)
Public property Fields Returns a collection that contains all the fields that the query returned.
Public property Item[Guid] Gets the item object with the specified GUID from the collection.
Public property Item[Int32] Gets the list item at the specified index in the collection.
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 SourceQuery Gets the query that retrieved the current collection of list items.
Public property UpgradedPersistedProperties (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

  Name Description
Public method Add() Creates an item but requires the SPListItem.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 SPListItem.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 SPListItem.Update method to actually add the item to the list.
Public method BeginLoadData Prevents updates, additions, and other operations on the collection while loading data.
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.
Public method EndLoadData Allows normal operations on the collection to resume after loading data.
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 GetEnumerator Returns an enumerator to iterate through the collection. (Overrides SPBaseCollection.GetEnumerator().)
Public method GetHashCode (Inherited from Object.)
Public method GetItemById Returns the item with the specified integer ID from the collection.
Public method GetObjectData (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
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 (Inherited from SPAutoSerializingObject.)
Public method ReorderItems Reorders items in the list.
Public method ToString (Inherited from Object.)
Protected method UpdateParent (Inherited from SPAutoSerializingObject.)
Top

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

  Name Description
Explicit interface implemetation Private method ICollection.CopyTo Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.)
Explicit interface implemetation Private property ICollection.IsSynchronized Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.)
Explicit interface implemetation Private property ICollection.SyncRoot Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.)
Top
Show:
© 2014 Microsoft