通过


PagedDataSource.Count 属性

定义

获取要从数据源使用的项数。

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

属性值

要从数据源使用的项数。

实现

注解

使用该 Count 属性可确定要从数据源中使用的项数。 返回的值取决于是否启用分页以及是否使用自定义分页。

注释

DataSource如果属性包含null,则返回 0。

适用于

另请参阅