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
Attribute | 9 | Attributes. For example, Mandatory in
|
Command | 1 | Command. |
CommandArgument | 3 | Command Argument. For example, 'foo' in
|
CommandParameter | 2 | Command Parameter. For example, '-name' in
|
Comment | 15 | Comment.
For example, #here in
|
GroupEnd | 13 | Group Ender.
For example, } in
|
GroupStart | 12 | Group Starter.
For example, { in
|
Keyword | 14 | Keyword.
For example, if in
|
LineContinuation | 18 | Line continuation.
For example, ` in
|
LoopLabel | 8 | Loop label. |
Member | 7 | Property name or method name. For example, Name in
|
NewLine | 17 | New line. This is '\n'
For example, \n in
|
Number | 4 | Number. For example, 12 in
|
Operator | 11 | Operators. For example, + in
|
Position | 19 | Position token. Position tokens are bogus tokens generated for identifying a location in the script. |
StatementSeparator | 16 | Statement separator. This is ';'
For example, ; in
|
String | 5 | String. For example, "12" in
|
Type | 10 | Types. For example, [string] in
|
Unknown | 0 | Unknown token. |
Variable | 6 | Variable. |