API Reference > imodeljs-backend > iModels > IModelDb > onBeforeClose onBeforeClose onBeforeClose: BeEvent<() => void> = new BeEvent<() => void>() Event called when the iModel is about to be closed note This event is not raised for snapshot IModelDbs. Defined in core/backend/src/IModelDb.ts Line 554 Last Updated: 13 June, 2024