ListItemCollection::Count Property
.NET Framework (current version)
Gets the number of ListItem objects in the collection.
Assembly: System.Web (in System.Web.dll)
Implements
ICollection::CountUse the Count property to determine the number of ListItem objects in the ListItemCollection. The Count property is commonly used when iterating through the collection to determine the upper bound of the collection.
To view the following code in a fully working example, see the ListItemCollection class topic.
.NET Framework
Available since 1.1
Available since 1.1
Show: