Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DefaultTransactionStatus.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 NotOverridable Sub SetRollbackOnly() _
    Implements ITransactionStatus.SetRollbackOnly
public void SetRollbackOnly();




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

See Also

DefaultTransactionStatus Class | Spring.Transaction.Support Namespace