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

Last Updated: 03 April, 2025