DataListItemCollection.Count 属性

定义

获取集合中 DataListItem 对象的数量。Gets the number of DataListItem objects in the collection.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

属性值

集合中 DataListItem 对象的数目。The number of DataListItem objects in the collection.

实现

注解

使用属性可确定DataListItemCollection集合中的DataListItem对象数。 CountUse the Count property to determine the number of DataListItem objects in the DataListItemCollection collection. Count属性通常在循环访问集合时使用, 以确定集合的上限。The Count property is commonly used when iterating through the collection to determine the upper bound of the collection.

适用于

另请参阅