当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO BeginTransComplete, Commit

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO BeginTransComplete, Commit


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

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

  • The BeginTransComplete event can be fired after a BeginTrans call is completed.
    BeginTransComplete事件可以在BeginTrans请求结束之后激发
  • The CommitTransComplete event can be fired after a CommitTrans call is completed.
    CommitTransComplete事件可以在CommitTrans请求结束之后激发
  • The RollbackTransComplete event can be fired after a RollbackTrans call is completed
    RollbackTransComplete 事件可以在RollbackTrans请求结束之后激发

Syntax
语法

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
注意:EventStatusEnum值必须设置为adStatusErrorsOccurred以创建Error[错误]对象

status Specifies the status of the execution of an event. Takes an EventStatusEnum value
指定时间执行的状态
objconn The Connection object that fired the event
用于激发时间的连接对象


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

登陆 | 还没注册?