Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ITransactionStatus.SetRollbackOnly Method

Set the transaction rollback-only. This instructs the transaction manager that the only possible outcome of the transaction may be a rollback, proceeding with the normal application workflow though (i.e. no exception).

[Visual Basic]
Public Sub SetRollbackOnly()
[C#]
void SetRollbackOnly();

Remarks

For transactions managed by a TransactionTemplate or TransactionInterceptor. An alternative way to trigger a rollback is throwing an transaction exception.

See Also

ITransactionStatus Interface | Spring.Transaction Namespace