tryGetMetaData Method
Deprecated in 5.0. Please use getSchemaItem
from SchemaContext
class instead.
Identical to getMetaData, except it returns undefined
instead of throwing an error if the metadata cannot be found nor loaded.
tryGetMetaData(classFullName: string): undefined | EntityMetaData
@example * ```typescript // Current usage: const metaData: EntityMetaData | undefined = imodel.tryGetMetaData("SchemaName:ClassName");
// Replacement: const metaData: EntityClass | undefined = imodel.schemaContext.getSchemaItemSync("SchemaName.ClassName", EntityClass);
```
Parameter | Type | Description |
---|---|---|
classFullName | string |
Returns - undefined | EntityMetaData
Defined in
- core/backend/src/IModelDb.ts Line 1200
Last Updated: 03 April, 2025
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.