Show / Hide Table of Contents

Method BeginTransaction

BeginTransaction()

Starts a transaction on the geodatabase.

Declaration
public void BeginTransaction()
Remarks

This method starts a new transaction on the geodatabase. The transaction fails to begin if another transaction is already active. A geodatabase cannot be synchronized while a transaction is active.

Transactions must be started and stopped on a single thread of execution. This method should only be called once per transaction. Repeatedly calling this method from the same thread will throw an exception.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.2
.NET 6.0100.13 - 200.2
.NET 6.0 Windows100.13 - 200.2
.NET 6.0 Android200.0 - 200.2
.NET 6.0 iOS200.0 - 200.2
.NET Framework100.2.1 - 200.2
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.2.1 - 100.15
iOS100.2.1 - 100.15
UWP100.2.1 - 200.2
Relevant samples
Geodatabase transactions: Use transactions to manage how changes are committed to a geodatabase.
In This Article
Back to top Copyright © 2022 Esri.