Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Include Protected Members
Include Inherited Members
Represents a collection of SPListItem objects.
The SPListItemCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
Count | Gets the number of list items in the collection, excluding folders. (Overrides SPBaseCollection.Count.) |
![]() |
Fields | Returns a collection that contains all the fields that the query returned. |
![]() |
Item[Guid] | Gets the item object with the specified GUID from the collection. |
![]() |
Item[Int32] | Gets the list item at the specified index in the collection. |
![]() |
List | Gets the parent list of the collection. |
![]() |
ListItemCollectionPosition | Gets an object that is used to obtain the next set of rows in a paged view of a list. |
![]() |
NumberOfFields | Gets the number of fields that are represented in the collection. |
![]() |
QueryFieldNames | Gets a collection of query field names. |
![]() |
SourceQuery | Gets the query that retrieved the current collection of list items. |
![]() |
UpgradedPersistedProperties | (Inherited from SPAutoSerializingObject.) |
![]() |
Xml | Gets all the data in the collection in XMLDATA format. |
![]() |
XmlDataSchema | Gets the schema that defines the XML that is returned by the Xml property. |
![]() |
XMLUseAllProperties | Gets a Boolean value that indicates whether the extended properties of the collection are serialized. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Add() | Creates an item but requires the SPListItem.Update method to actually add the item to the list. |
![]() |
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. |
![]() |
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. |
![]() |
BeginLoadData | Prevents updates, additions, and other operations on the collection while loading data. |
![]() |
Delete | Deletes the item at the specified index in the collection. |
![]() |
DeleteItemById | Deletes the item with the specified integer ID from the collection. |
![]() |
EndLoadData | Allows normal operations on the collection to resume after loading data. |
![]() |
EnsureListItemsData | Checks data for the items and, if necessary, updates the data to ensure it is current. |
![]() |
EnsureListScopeData | Checks scope data for the items and, if necessary, updates it to ensure that the most current data is used. |
![]() |
EnsureListScopeDict | Checks the scope dictionary for the items and, if necessary, updates it to ensure that the most current data is used. |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetDataTable | Returns the collection of list items as a data table. |
![]() |
GetEnumerator | Returns an enumerator to iterate through the collection. (Overrides SPBaseCollection.GetEnumerator().) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetItemById | Returns the item with the specified integer ID from the collection. |
![]() |
GetObjectData | (Inherited from SPAutoSerializingObject.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
GetTypedEnumerator<T> | Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.) |
![]() |
Init | Initializes the specified list, query, and view. |
![]() |
ListScopeXmlHelper | Returns the scope XML of the collection. |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
OnDeserialization | (Inherited from SPAutoSerializingObject.) |
![]() |
ReorderItems | Reorders items in the list. |
![]() |
ToString | (Inherited from Object.) |
![]() |
UpdateParent | (Inherited from SPAutoSerializingObject.) |
Top
Fields
Name | Description | |
---|---|---|
![]() |
m_iRowCount | This member is reserved for internal use and is not intended to be used directly from your code. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
ICollection.CopyTo | Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.) |
![]() ![]() |
ICollection.IsSynchronized | Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.) |
![]() ![]() |
ICollection.SyncRoot | Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.) |
Top