Share via


ObjectDataSourceView.SelectCountMethod 屬性

定義

取得或設定 ObjectDataSourceView 控制項叫用以擷取資料列計數之方法或函式的名稱。

public:
 property System::String ^ SelectCountMethod { System::String ^ get(); void set(System::String ^ value); };
public string SelectCountMethod { get; set; }
member this.SelectCountMethod : string with get, set
Public Property SelectCountMethod As String

屬性值

字串,表示 ObjectDataSourceView 用於擷取資料列計數之方法或函式的名稱。 預設為空字串 ("")。

備註

SelectCountMethod會識別用來擷取總數據列計數以支援資料來源分頁的商務物件方法。 SelectCountMethod只有在 屬性設定為 trueEnablePaging ,才會評估屬性。 如需 如何支援 ObjectDataSourceView 分頁的資訊,請參閱 EnablePaging

屬性的值 SelectCountMethod 會儲存在檢視狀態中。

適用於

另請參閱