共用方式為


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。

適用於

另請參閱