API Reference > ecSchema-Metadata > Metadata > Schema > createEnumeration createEnumeration MethodProtected Creates an Enumeration with the provided name in this schema. createEnumeration(name: string, primitiveType?: Integer | String): Promise<Enumeration> Parameter Type Description name string primitiveType Integer | String Returns - Promise<Enumeration> Defined in core/ecschema-metadata/src/Metadata/Schema.ts Line 233 Last Updated: 11 June, 2024