Show / Hide Table of Contents

Method CommitTransaction

CommitTransaction()

Commits the edits in the transaction to the geodatabase.

Declaration
public void CommitTransaction()
Remarks

Commits the edits in the current transaction to 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
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7
Relevant samples
Geodatabase transactions: Use transactions to manage how changes are committed to a geodatabase.
In This Article
Back to top Copyright © 2022 Esri.