IResultSet.Close Method
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.
Releases this ResultSet
object's database and
JDBC resources immediately instead of waiting for
this to happen when it is automatically closed.
[Android.Runtime.Register("close", "()V", "GetCloseHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Close ();
[<Android.Runtime.Register("close", "()V", "GetCloseHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Close : unit -> unit
- Attributes
Exceptions
if a database error happens.
Remarks
Releases this ResultSet
object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.
The closing of a ResultSet
object does <strong>not</strong> close the Blob
, Clob
or NClob
objects created by the ResultSet
. Blob
, Clob
or NClob
objects remain valid for at least the duration of the transaction in which they are creataed, unless their free
method is invoked.
When a ResultSet
is closed, any ResultSetMetaData
instances that were created by calling the getMetaData
method remain accessible.
<B>Note:</B> A ResultSet
object is automatically closed by the Statement
object that generated it when that Statement
object is closed, re-executed, or is used to retrieve the next result from a sequence of multiple results.
Calling the method close
on a ResultSet
object that is already closed is a no-op.
Java documentation for java.sql.ResultSet.close()
.
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.