OnTransactionAbort

OnTransactionAbort イベントは、トランザクションが中止された場合に発生します。OnTransactionAbort イベントが発生すると、IIS は、該当するスクリプトの OnTransactionAbort サブルーチン (存在する場合) を処理します。

次の例は、トランザクションが中止されたときに、クライアントに応答メッセージを送信します。

<%@ TRANSACTION=Required LANGUAGE="VBScript" %>
<% Option Explicit
  ObjectContext.SetAbort
  Sub OnTransactionAbort
    Response.Write "<p><b>The Transaction just aborted</b>." 
    Response.Write "This message came from the "
    Response.Write "OnTransactionAbort() event handler."
  end sub
%>
対象

ObjectContext オブジェクト


© 1997-2001 Microsoft Corporation.All rights reserved.