IPooledConnection.AddConnectionEventListener(IConnectionEventListener) Method
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.
Registers the given event listener so that it will be notified
when an event occurs on this PooledConnection
object.
[Android.Runtime.Register("addConnectionEventListener", "(Ljavax/sql/ConnectionEventListener;)V", "GetAddConnectionEventListener_Ljavax_sql_ConnectionEventListener_Handler:Javax.Sql.IPooledConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void AddConnectionEventListener (Javax.Sql.IConnectionEventListener? listener);
[<Android.Runtime.Register("addConnectionEventListener", "(Ljavax/sql/ConnectionEventListener;)V", "GetAddConnectionEventListener_Ljavax_sql_ConnectionEventListener_Handler:Javax.Sql.IPooledConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AddConnectionEventListener : Javax.Sql.IConnectionEventListener -> unit
- listener
- IConnectionEventListener
a component, usually the connection pool manager,
that has implemented the
ConnectionEventListener
interface and wants to be
notified when the connection is closed or has an error
- Attributes
Registers the given event listener so that it will be notified when an event occurs on this PooledConnection
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.