{"title":"Enum data type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/enum/enum-data-type/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/enum/enum-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/enum/enum-data-type","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Represents the text content of an element or attribute.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Static methods","slug":"static-methods","at":116,"chars":186},{"level":2,"title":"Instance methods","slug":"instance-methods","at":302,"chars":285},{"level":2,"title":"Example","slug":"example","at":587,"chars":46},{"level":2,"title":"Related information","slug":"related-information","at":633,"chars":117}],"text":"> Version: _Available or changed with runtime version 4.0._\nRepresents the text content of an element or attribute.\n## Static methods\nThe following methods are available on the Enum data type.\nMethod name|Description\nFromInteger(Integer)<enum-frominteger-method>|Returns an enum with the integer value\n## Instance methods\nThe following methods are available on instances of the Enum data type.\nMethod name|Description\nenum-asinteger-method|Get the enum value as an integer value.\nenum-names--method|Gets the value names\nenum-ordinals--method|Gets the ordinal numbers/ID's for the values\n## Example\nSee ../../devenv-extensible-enums.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}