DataKeyCollection.Count 属性

定义

获取集合中的项数。Gets the number of items in the collection.

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

属性值

Int32

集合中项的数目。The number of items in the collection.

实现

注解

使用 Count 属性可确定集合中的项数。Use the Count property to determine the number of items in the collection. 当循环访问集合以确定上限时,通常使用此属性。This property is commonly used when iterating through the collection to determine the upper bound.

适用于