API Reference > ecschema-Metadata > Metadata > Enumeration > createEnumerator createEnumerator Method Creates an Enumerator with the provided name and value as well as optional parameters label and description createEnumerator(name: string, value: string | number, label?: string, description?: string): AnyEnumerator Parameter Type Description name string The name of the enumerator value string | number The value of the enumerator. The type of this value is dependent on the backing type of the this Enumeration. label string A localized display label that is used instead of the name in a GUI. description string A localized description for the enumerator. Returns - AnyEnumerator AnyEnumerator object Defined in core/ecschema-metadata/src/Metadata/Enumeration.ts Line 93 Last Updated: 12 June, 2024