当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO InfoMessage 事件

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO InfoMessage 事件


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 436 ::
收藏到网摘: n/a

An event is a subroutine that can be called automatically after a specific operation has occurred.
事件就是在一个具体操作发生之后自动请求的一个字程序。

The InfoMessage event can be fired if a warning occurs in a connection operation.
如果在连接操作时产生警告,那么将会激发InfoMessage事件。

Syntax
语法

InfoMessage objerror,status,objconn

Parameter参数 Description描述
objerror An Error object that contains the errors that are returned
指定一个包含所发生的错误的Error对象
status An EventStatusEnum value. If a warning occurs, status is set to adStatusOK and the objerror contains the warning
指定一个EventStatusEnum值。如果产生警告提示,那么状态必须设置为adStatusOK,并且objerror将保留这个警告提示
objconn A Connection object. The connection for which the warning occurred
指定在出现警告提示的连接对象


EventStatusEnum Values

Constant常量 Value值 Description描述
adStatusOK 1 The operation that fired the event was successful
激发事件操作成功
adStatusErrorsOccurred 2 The operation that fired the event failed
激发事件操作失败
adStatusCantDeny 3 Cannot cancel the pending operation
不可以取消正处于处理执行中的操作
adStatusCancel 4 Cancels the operation that fired the event
取消激发事件的操作
adStatusUnwantedEvent 5 Prevents subsequent notifications before the event method has finished executing
在时间的运行方法终止运行之前禁止后续的报告

评论 (0) All

登陆 | 还没注册?