Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RuleBasedTransactionAttribute.RollbackOn Method

Will a transaction be rolled back if the supplied is thrown during the lifecycle of a transaction to which this attribute is applied?

[Visual Basic]
Public Overrides Sub RollbackOn( _
   ByVal exception As Exception _
) _
    Implements ITransactionAttribute.RollbackOn
[C#]
public override bool RollbackOn(
   Exception exception
);

Parameters

exception
The offending Exception.

Return Value

True if the exception should cause a rollback, false otherwise.

Implements

ITransactionAttribute.RollbackOn

See Also

RuleBasedTransactionAttribute Class | Spring.Transaction.Interceptor Namespace