Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ISavepointManager.CreateSavepoint Method

Create a new savepoint.

[Visual Basic]
Public Sub CreateSavepoint( _
   ByVal savepointName As String _
void CreateSavepoint(
   string savepointName


The name of the savepoint to create.

Return Value

A savepoint object, to be passed into RollbackToSavepoint or ReleaseSavepoint.


You can roll back to a specific savepoint via RollbackToSavepoint, and explicitly release a savepoint that you don't need anymore via ReleaseSavepoint.

Note that most transaction managers will automatically release savepoints at transaction completion.


Exception Type Condition
TransactionException If the savepoint could not be created, either because the backend does not support it or because the transaction is not in an appropriate state.

See Also

ISavepointManager Interface | Spring.Transaction Namespace