Method RollbackTransaction
RollbackTransaction()
Rollback the edits in the transaction from the geodatabase.
Declaration
public void RollbackTransaction()
Remarks
Discards the edits in the current transaction from the geodatabase. This will also end the transaction. An exception will be thrown if a transaction has not been started on the geodatabase.
Transactions can be started and stopped on any thread. Any edits that take place after a call to BeginTransaction() but before a call to either CommitTransaction() or RollbackTransaction() will be considered part of that transaction, no matter what thread made the edit.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.2.1 - 200.5 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.5 |
Relevant samples
Geodatabase transactions: Use transactions to manage how changes are committed to a geodatabase.