Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IPlatformTransactionManager.GetTransaction Method

Return a currently active transaction or create a new one.

[Visual Basic]
Public Sub GetTransaction( _
   ByVal definition As ITransactionDefinition _
ITransactionStatus GetTransaction(
   ITransactionDefinition definition


ITransactionDefinition instance (can be null for defaults), describing propagation behavior, isolation level, timeout etc.

Return Value

A ITransactionStatus representing the new or current transaction.


Note that parameters like isolation level or timeout will only be applied to new transactions, and thus be ignored when participating in active ones. Furthermore, they aren't supported by every transaction manager: a proper implementation should throw an exception when custom values that it doesn't support are specified.


Exception Type Condition
TransactionException In case of lookup, creation, or system errors.

See Also

IPlatformTransactionManager Interface | Spring.Transaction Namespace