Enum Data Type
Version: Available or changed with runtime version 4.0.
Represents the text content of an element or attribute.
Static methods
The following methods are available on the Enum data type.
Method name | Description |
---|---|
FromInteger(Integer) | Returns an enum with the integer value |
Names() | Gets the value names |
Ordinals() | Gets the ordinal numbers/ID's for the values |
Instance methods
The following methods are available on instances of the Enum data type.
Method name | Description |
---|---|
AsInteger() | Get the enum value as an integer value. |
Names() | Gets the value names |
Ordinals() | Gets the ordinal numbers/ID's for the values |
Example
For more information, see Extensible Enums.
See Also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈