Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

TransactionAspectSupport.CurrentTransactionInfo Property

Subclasses can use this to return the current TransactionAspectSupport.TransactionInfo.

[Visual Basic]
Protected Shared ReadOnly Property CurrentTransactionInfo() As TransactionInfo
   Protected Get
   End Get
End Property
[C#]
protected static TransactionInfo CurrentTransactionInfo { protected get; }

Remarks

Only subclasses that cannot handle all operations in one method need to use this mechanism to get at the current TransactionAspectSupport.TransactionInfo. An around advice such as an AOP Alliance IMethodInterceptor can hold a reference to the TransactionAspectSupport.TransactionInfo throughout the aspect method. A TransactionAspectSupport.TransactionInfo will be returned even if no transaction was created. The HasTransaction property can be used to query this.

Exceptions

Exception Type Condition
NoTransactionException If no transaction has been created by an aspect.

See Also

TransactionAspectSupport Class | Spring.Transaction.Interceptor Namespace