IPooledConnection.AddConnectionEventListener(IConnectionEventListener) 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.
Registers the given event listener so that it will be notified when an event occurs on this <code>PooledConnection</code> 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
Parameters
- listener
- IConnectionEventListener
a component, usually the connection pool manager, that has implemented the <code>ConnectionEventListener</code> interface and wants to be notified when the connection is closed or has an error
- Attributes
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.