API Reference > presentation-frontend > UnifiedSelection > ISelectionProvider > getSelection getSelection Method Get the selection stored in the provider. getSelection(imodel: IModelConnection, level: number): Readonly<KeySet> Parameter Type Description imodel IModelConnection iModel connection which the selection is associated with. level number Level of the selection (see Selection levels) Returns - Readonly<KeySet> Defined in presentation/frontend/src/selection/ISelectionProvider.ts Line 25 Last Updated: 13 June, 2024