PSTokenType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
PowerShell token types.
public enum class PSTokenType
public enum PSTokenType
type PSTokenType =
Public Enum PSTokenType
- Inheritance
-
PSTokenType
Fields
Name | Value | Description |
---|---|---|
Unknown | 0 | Unknown token. |
Command | 1 | Command. |
CommandParameter | 2 | Command Parameter. For example, '-name' in
|
CommandArgument | 3 | Command Argument. For example, 'foo' in
|
Number | 4 | Number. For example, 12 in
|
String | 5 | String. For example, "12" in
|
Variable | 6 | Variable. |
Member | 7 | Property name or method name. For example, Name in
|
LoopLabel | 8 | Loop label. |
Attribute | 9 | Attributes. For example, Mandatory in
|
Type | 10 | Types. For example, [string] in
|
Operator | 11 | Operators. For example, + in
|
GroupStart | 12 | Group Starter.
For example, { in
|
GroupEnd | 13 | Group Ender.
For example, } in
|
Keyword | 14 | Keyword.
For example, if in
|
Comment | 15 | Comment.
For example, #here in
|
StatementSeparator | 16 | Statement separator. This is ';'
For example, ; in
|
NewLine | 17 | New line. This is '\n'
For example, \n in
|
LineContinuation | 18 | Line continuation.
For example, ` in
|
Position | 19 | Position token. Position tokens are bogus tokens generated for identifying a location in the script. |