当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO BeginTransComplete, Commit
An event is a subroutine that can be called automatically after a specific operation has occurred.
事件就是在一个具体操作发生之后自动请求的一个字程序。
BeginTransComplete translevel,objerror,status,objconn CommitTransComplete objerror,status,objconn RollbackTransComplete objerror,status,objconn |
Parameter参数 | Description描述 |
---|---|
translevel | The transaction level of the BeginTrans method that fired the event 用于激发事件方法的BeginTrans执行级别 |
objerror | An Error object that contains the errors that occurred 包含了所有产生的错误的Error[错误]对象 Note: The EventStatusEnum value must be set to adStatusErrorsOccurred to create the Error object |
status | Specifies the status of the execution of an event. Takes an EventStatusEnum value 指定时间执行的状态 |
objconn | The Connection object that fired the event 用于激发时间的连接对象 |
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 在时间的运行方法终止运行之前禁止后续的报告 |