Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RollbackRuleAttribute Constructor

Creates a new instance of the RollbackRuleAttribute class for the suplied exceptionType.

[Visual Basic]
Public Overloads Sub New( _
   ByVal exceptionType As Type _
)
[C#]
RollbackRuleAttribute(
   Type exceptionType
);

Parameters

exceptionType
The Exception class that will trigger a rollback.

Remarks

The exception class must be Exception or a subclass.

This is the preferred way to construct a RollbackRuleAttribute, matching the exception class and subclasses.

See Also

RollbackRuleAttribute Class | Spring.Transaction.Interceptor Namespace | RollbackRuleAttribute Constructor Overload List