SetAbort

Declares that a transaction on a transaction server should be rolled back.

To roll back a transaction

Use

For OLETxnObject objects

Syntax 1 For OLETxnObject objects

For TransactionServer objects

Syntax 2 For TransactionServer objects


Syntax 1 For OLETxnObject objects

Description

Declares that the current transaction should be rolled back.

Applies to

OLETxnObject objects

Syntax

oletxnobject.SetAbort (  )

Returns

Integer. Returns 1 if it succeeds and -1 if an error occurs.


Syntax 2 For TransactionServer objects

Description

Declares that a component cannot complete its work for the current transaction and that the transaction should be rolled back. The component instance are deactivated when the method returns.

Applies to

TransactionServer objects

Syntax

transactionserver.SetAbort (  )

Returns

Integer. Returns 1 if it succeeds and -1 if an error occurs.