Język

IStatement.MaxRows Property

Definition

Gets the maximum number of rows that a ResultSet can contain when produced from this statement.

public int MaxRows { [Android.Runtime.Register("getMaxRows", "()I", "GetGetMaxRowsHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; [Android.Runtime.Register("setMaxRows", "(I)V", "GetSetMaxRows_IHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] set; }
[<get: Android.Runtime.Register("getMaxRows", "()I", "GetGetMaxRowsHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<set: Android.Runtime.Register("setMaxRows", "(I)V", "GetSetMaxRows_IHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.MaxRows : int with get, set

Property Value

the current maximum number of rows for a ResultSet object produced by this Statement object; zero means there is no limit

Attributes

Exceptions

if an error occurs accessing the database.

if an error occurs accessing the database or if max 0.

Remarks

Retrieves the maximum number of rows that a ResultSet object produced by this Statement object can contain. If this limit is exceeded, the excess rows are silently dropped.

Java reference for java.sql.Statement.getMaxRows.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to