API Reference > ecschema-Metadata > Metadata > Enumeration > getEnumeratorByName getEnumeratorByName Method Gets an enumerator that matches the name provided. getEnumeratorByName(name: string): undefined | AnyEnumerator Parameter Type Description name string The ECName of the Enumerator to find. Returns - undefined | AnyEnumerator Defined in core/ecschema-metadata/src/Metadata/Enumeration.ts Line 56 Last Updated: 11 June, 2024