addConnectionEventListener 方法 (SQLServerPooledConnection)

下載 JDBC 驅動程式

註冊指定的事件接聽程式,如此一來,當這個 SQLServerPooledConnection 物件上發生事件時,它就可以收到通知。

語法

  
public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)  

參數

listener

ConnectionEventListener 物件。

備註

這個 addConnectionEventListener 方法是由 javax.sql.PooledConnection 介面中的 addConnectionEventListener 方法所指定。

另請參閱

SQLServerPooledConnection 方法
SQLServerPooledConnection 成員
SQLServerPooledConnection 類別