diff --git a/reference/7.3/Microsoft.PowerShell.Core/About/about_Enum.md b/reference/7.3/Microsoft.PowerShell.Core/About/about_Enum.md index e41c3129b991..32e89ff7e224 100644 --- a/reference/7.3/Microsoft.PowerShell.Core/About/about_Enum.md +++ b/reference/7.3/Microsoft.PowerShell.Core/About/about_Enum.md @@ -1,7 +1,7 @@ --- description: The `enum` statement is used to declare an enumeration. An enumeration is a distinct type that consists of a set of named labels called the enumerator list. Locale: en-US -ms.date: 08/17/2023 +ms.date: 11/17/2023 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_enum?view=powershell-7.3&WT.mc_id=ps-gethelp schema: 2.0.0 title: about Enum @@ -20,24 +20,103 @@ The `enum` statement allows you to create a strongly typed set of labels. You can use that enumeration in the code without having to parse or check for spelling errors. -Enumerations are internally represented as integers with a starting value of -zero. By default, PowerShell assigns the first label in the list the value -zero. By default, PowerShell assigns the remaining labels with consecutive -integers. +Enumerations are internally represented as integral value types with a starting +value of zero. By default, PowerShell enumerations use **System.Int32** +(`[int]`) as the underlying type. By default, PowerShell assigns the first +label in the list the value zero. By default, PowerShell assigns the remaining +labels with consecutive integers. In the definition, you can give labels any integer value. Labels with no value assigned take the next integer value. -## Syntax (basic) +## Syntax -```syntax -enum { +Enumerations use the following syntaxes: + +### Integer enumeration definition syntax + +```Syntax +[[]...] enum { +