Deprecated  in 5.0. 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
classFullName string  

Returns - EntityMetaData

Defined in

Last Updated: 03 April, 2025