getMetaData Method
Deprecated in 5.0 - will not be removed until after 2026-06-13. Please use getSchemaItem
from SchemaContext
class instead.
Get metadata for a class. This method will load the metadata from the iModel into the cache as a side-effect, if necessary.
getMetaData(classFullName: string): EntityMetaData
@throws IModelError if the metadata cannot be found nor loaded.
@example * ```typescript // Current usage: const metaData: EntityMetaData = imodel.getMetaData("SchemaName:ClassName");
// Replacement: const metaData: EntityClass | undefined = imodel.schemaContext.getSchemaItemSync("SchemaName", "ClassName", EntityClass);
| Parameter | Type | Description |
|----|----|----|
| <span class="parameter-name">classFullName</span> | <span class="parameter-type">string</span> | |
**Returns** - <span class="method-output"> EntityMetaData</span>
### Defined in
- <span class="defined-in"><a href="https://github.com/iTwin/itwinjs-core/blob/e8cd7e7f72b123b5c2eced2c09efc3a8dac4c8dc/core/backend/src/IModelDb.ts#L1219" target="_blank">core/backend/src/IModelDb.ts</a></span> Line 1219
Last Updated: 27 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.