Show / Hide Table of Contents

Property IsInTransaction

IsInTransaction

Gets a value indicating whether a transaction is active on the geodatabase.

Declaration
public bool IsInTransaction { get; }
Property Value
Type Description
System.Boolean

true if a transaction is active on the geodatabase, false otherwise.

Remarks

A transaction manages a series of geodatabase edits as a single unit of work. You can start a transaction by calling BeginTransaction(). All edits made after this call are part of the transaction.

A geodatabase transaction stays active until you end it by calling CommitTransaction() or RollbackTransaction(). CommitTransaction() saves all edits in the transaction to the geodatabase and ends the transaction. RollbackTransaction() discards all edits in the transaction and ends the transaction.

If the app unexpectedly disconnects from the database, any active transaction will be rolled back. If the app crashes, or the user closes the app without saving edits, the transaction will be rolled back and the edits discarded.

See Also
BeginTransaction()
RollbackTransaction()
CommitTransaction()

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.