DataSourceView.CanPage 屬性

定義

取得值,指出與目前 DataSourceView 物件關聯的 DataSourceControl 物件是否支援對 ExecuteSelect(DataSourceSelectArguments) 方法擷取的資料進行分頁。Gets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports paging through the data retrieved by the ExecuteSelect(DataSourceSelectArguments) method.

public:
 virtual property bool CanPage { bool get(); };
public virtual bool CanPage { get; }
member this.CanPage : bool
Public Overridable ReadOnly Property CanPage As Boolean

屬性值

Boolean

如果支援該作業則為 true,否則為 falsetrue if the operation is supported; otherwise, false. 基底類別實作會傳回 falseThe base class implementation returns false.

備註

資料繫結控制項可以將 Page 欄位加入至傳遞給方法的物件,以要求分頁 DataSourceSelectArguments ExecuteSelectA data-bound control can request paging by adding the Page field to the DataSourceSelectArguments object passed to the ExecuteSelect method. 如果資料繫結控制項要求分頁,但 CanPage 屬性傳回 false ,則資料來源視圖會擲回例外狀況。If a data-bound control requests paging, but the CanPage property returns false, the data source view throws an exception.

適用於

另請參閱