DataListItemCollection.Count 属性

定义

获取集合中 DataListItem 对象的数量。

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

属性值

Int32

集合中 DataListItem 对象的数目。

实现

注解

使用Count属性确定集合中的DataListItemCollection对象数DataListItemCount在循环访问集合以确定集合的上限时,通常使用此属性。

适用于

另请参阅