SPListItemCollection properties

The SPListItemCollection type exposes the following members.

Properties

  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 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

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.)

Top

See also

Reference

SPListItemCollection class

Microsoft.SharePoint namespace