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

Last Updated: 28 April, 2026