Jazyk

IStatement.Warnings Property

Definition

Retrieves the first SQLWarning reported by calls on this statement.

public Java.Sql.SQLWarning? Warnings { [Android.Runtime.Register("getWarnings", "()Ljava/sql/SQLWarning;", "GetGetWarningsHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("getWarnings", "()Ljava/sql/SQLWarning;", "GetGetWarningsHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.Warnings : Java.Sql.SQLWarning

Property Value

the first SQLWarning object or null if there are no warnings

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Retrieves the first warning reported by calls on this Statement object. Subsequent Statement object warnings will be chained to this SQLWarning object. The warning chain is automatically cleared each time a statement is (re)executed. This method may not be called on a closed Statement object; doing so will cause an SQLException to be thrown. Note: If you are processing a ResultSet object, any warnings associated with reads on that ResultSet object will be chained on it rather than on the Statement object that produced it.

Java reference for java.sql.Statement.getWarnings.

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