Język

IStatement.MaxFieldSize Property

Definition

Gets the maximum number of bytes which can be returned as values from character and binary type columns in a ResultSet derived from this statement.

public int MaxFieldSize { [Android.Runtime.Register("getMaxFieldSize", "()I", "GetGetMaxFieldSizeHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; [Android.Runtime.Register("setMaxFieldSize", "(I)V", "GetSetMaxFieldSize_IHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] set; }
[<get: Android.Runtime.Register("getMaxFieldSize", "()I", "GetGetMaxFieldSizeHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<set: Android.Runtime.Register("setMaxFieldSize", "(I)V", "GetSetMaxFieldSize_IHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.MaxFieldSize : int with get, set

Property Value

the current column size limit for columns storing character and binary values; zero means there is no limit

Attributes

Exceptions

if an error occurs accessing the database.

if an error occurs accessing the database or the max value is < 0.

Remarks

Retrieves the maximum number of bytes that can be returned for character and binary column values in a ResultSet object produced by this Statement object. This limit applies only to BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, NCHAR, NVARCHAR, LONGNVARCHAR and LONGVARCHAR columns. If the limit is exceeded, the excess data is silently discarded.

Java reference for java.sql.Statement.getMaxFieldSize.

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