Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RollbackRuleAttribute.GetDepth(Type) Method

Return the depth to the matching superclass execption Type.

[Visual Basic]
Public Overloads Sub GetDepth( _
   ByVal exceptionType As Type _
)
[C#]
public int GetDepth(
   Type exceptionType
);

Parameters

exceptionType
The Type of exception to find.

Return Value

Return -1 if there's no match. Otherwise, return depth. Lowest depth wins.

Remarks

A return value of 0 means that the exceptionType matches.

See Also

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