Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

TransactionSynchronizationManager.CurrentTransactionName Property

Gets or sets the name of the current transaction, if any.

[Visual Basic]
Public Shared Property CurrentTransactionName() As String
   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public static string CurrentTransactionName { public get; public set; }

Property Value

The name of the current transactio or null if none set.

Remarks

Called by the transaction manager on transaction begin and on cleanup. To be called by resource management code for optimizations per use case, for example to optimize fetch strategies for specific named transactions.

See Also

TransactionSynchronizationManager Class | Spring.Transaction.Support Namespace