IConnection.Warnings Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the first instance of any SQLWarning objects that may have
been created in the use of this connection.
public Java.Sql.SQLWarning? Warnings { [Android.Runtime.Register("getWarnings", "()Ljava/sql/SQLWarning;", "GetGetWarningsHandler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("getWarnings", "()Ljava/sql/SQLWarning;", "GetGetWarningsHandler:Java.Sql.IConnectionInvoker, 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 none.
- Attributes
Exceptions
if there is a problem accessing the database or if the call has been made on a connection which has been previously closed.
Remarks
Retrieves the first warning reported by calls on this Connection object. If there is more than one warning, subsequent warnings will be chained to the first one and can be retrieved by calling the method SQLWarning.getNextWarning on the warning that was retrieved previously. This method may not be called on a closed connection; doing so will cause an SQLException to be thrown. Note: Subsequent warnings will be chained to this SQLWarning.
Android reference for java.sql.Connection.getWarnings().
Java reference for java.sql.Connection.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.