PagedDataSource.Count 屬性

定義

從資料來源取得要使用的項目數。

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

屬性值

Int32

資料來源中要使用的項目數。

實作

備註

您可以使用 Count 屬性來判斷要從資料來源使用的專案數目。 傳回的值取決於是否已啟用分頁,以及是否使用自訂分頁。

注意

如果 DataSource 屬性包含 null ,則會傳回0。

適用於

另請參閱