다음을 통해 공유


AbortChange Method

Topic Last Modified: 2006-06-13

This method aborts the transaction in which synchronous events are currently executing.

Applies To

IExStoreDispEventInfo Interface

Type Library

EXOLEDB Type Library

DLL Implemented In

EXOLEDB.DLL

Syntax

Sub AbortChange(    lErrorCode As LONG)
HRESULT AbortChange
(
        LONG lErrorCode
);

Parameters

  • lErrorCode
    The error code you can return to the event source to indicate the reason for the abort. See Remarks.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method is only valid for synchronous events that run in the context of an OLE DB local transaction. It is not valid for asynchronous events or system events.

When aborting the transaction for reasons other than programmatic failures, set the LErrorCode flag to E_ABORT.