IConnection.IsClosed 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.
Returns a boolean indicating whether or not this connection is in
the closed state.
public bool IsClosed { [Android.Runtime.Register("isClosed", "()Z", "GetIsClosedHandler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("isClosed", "()Z", "GetIsClosedHandler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.IsClosed : bool
Property Value
true if this Connection object is closed; false if it is still open.
- Attributes
Exceptions
if there is a problem accessing the database.
Remarks
Retrieves whether this Connection object has been closed. A connection is closed if the method close has been called on it or if certain fatal errors have occurred. This method is guaranteed to return true only when it is called after the method Connection.close has been called. This method generally cannot be called to determine whether a connection to a database is valid or invalid. A typical client can determine that a connection is invalid by catching any exceptions that might be thrown when an operation is attempted.
Android reference for java.sql.Connection.isClosed().
Java reference for java.sql.Connection.isClosed.
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.