Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

TransactionAspectSupport.CreateTransactionIfNecessary(MethodInfo, Type) Method

Create a transaction if necessary

[Visual Basic]
Protected Overloads Sub CreateTransactionIfNecessary( _
   ByVal method As MethodInfo, _
   ByVal targetType As Type _
protected TransactionInfo CreateTransactionIfNecessary(
   MethodInfo method,
   Type targetType


Method about to execute
Type that the method is on

Return Value

A TransactionAspectSupport.TransactionInfo object, whether or not a transaction was created.

The HasTransaction property on the TransactionAspectSupport.TransactionInfo class can be used to tell if there was a transaction created.

See Also

TransactionAspectSupport Class | Spring.Transaction.Interceptor Namespace | TransactionAspectSupport.CreateTransactionIfNecessary Overload List