onClose Method
Invoked when the owning iModel is closing. The base implementation commits unsaved changes. Subclasses may override to customize how their changes are handled before the iModel closes.
onClose(): void
@throws EditTxnError if this EditTxn is not active.
@throws IModelError if saving on close fails.
Returns - void
Defined in
- backend/src/EditTxn.ts Line 166
Last Updated: 28 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.