ConnectionEvent Constructors
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.
Overloads
ConnectionEvent(IPooledConnection) |
Constructs a |
ConnectionEvent(IPooledConnection, SQLException) |
Constructs a |
ConnectionEvent(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ConnectionEvent(IPooledConnection)
Constructs a ConnectionEvent
object initialized with
the given PooledConnection
object.
[Android.Runtime.Register(".ctor", "(Ljavax/sql/PooledConnection;)V", "")]
public ConnectionEvent (Javax.Sql.IPooledConnection? con);
[<Android.Runtime.Register(".ctor", "(Ljavax/sql/PooledConnection;)V", "")>]
new Javax.Sql.ConnectionEvent : Javax.Sql.IPooledConnection -> Javax.Sql.ConnectionEvent
Parameters
the pooled connection that is the source of the event
- Attributes
Remarks
Constructs a ConnectionEvent
object initialized with the given PooledConnection
object. SQLException
defaults to null
.
Java documentation for javax.sql.ConnectionEvent.ConnectionEvent(javax.sql.PooledConnection)
.
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
ConnectionEvent(IPooledConnection, SQLException)
Constructs a ConnectionEvent
object initialized with
the given PooledConnection
object and
SQLException
object.
[Android.Runtime.Register(".ctor", "(Ljavax/sql/PooledConnection;Ljava/sql/SQLException;)V", "")]
public ConnectionEvent (Javax.Sql.IPooledConnection? con, Java.Sql.SQLException? ex);
[<Android.Runtime.Register(".ctor", "(Ljavax/sql/PooledConnection;Ljava/sql/SQLException;)V", "")>]
new Javax.Sql.ConnectionEvent : Javax.Sql.IPooledConnection * Java.Sql.SQLException -> Javax.Sql.ConnectionEvent
Parameters
the pooled connection that is the source of the event
- ex
- SQLException
the SQLException about to be thrown to the application
- Attributes
Remarks
Constructs a ConnectionEvent
object initialized with the given PooledConnection
object and SQLException
object.
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
ConnectionEvent(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected ConnectionEvent (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Sql.ConnectionEvent : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Sql.ConnectionEvent
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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.