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仅当属性设置为 true时,EnablePaging才会计算 属性。 有关 如何支持 ObjectDataSourceView分页的信息,请参阅 EnablePaging

属性的值 SelectCountMethod 存储在视图状态中。

适用于

另请参阅