Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

ADO 信息消息 事件


❮ 连接对象完整参考

事件是一个子例程,可以在特定操作发生后自动调用。

如果连接操作中发生警告,则可能会触发 InfoMessage 事件。

语法

InfoMessage objerror,status,objconn

参数 描述
objerror 包含返回错误的 Error 对象
status 一个 EventStatusEnum 值。如果发生警告,则 status 设置为 adStatusOK,并且 objerror 包含警告
objconn 一个 Connection 对象。发生警告的连接

EventStatusEnum 值

常量 描述
adStatusOK 1 触发事件的操作成功
adStatusErrorsOccurred 2 触发事件的操作失败
adStatusCantDeny 3 无法取消挂起的操作
adStatusCancel 4 取消触发事件的操作
adStatusUnwantedEvent 5 在事件方法执行完成之前阻止后续通知

❮ 连接对象完整参考
×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.