Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSTokenType Enumeration

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the types of tokens that can be generated from Windows PowerShell scripts. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public enum class PSTokenType

Member nameDescription
Attribute

Attributes

Command

Command

CommandArgument

Command Argument

CommandParameter

Command Parameter

Comment

Comment

GroupEnd

Group Ender

GroupStart

Group Starter

Keyword

Keyword

LineContinuation

Line continuation

LoopLabel

Loop label

Member

Property name or method name

NewLine

New line. This is '\n'

Number

Number

Operator

Operators

Position

Position token

StatementSeparator

Statement separator. This is ';'

String

String

Type

Types

Unknown

Unknown token

Variable

Variable

Tokens are generated by parsing Windows PowerShell scripts using the Tokenize method.

Return to top
Show:
© 2016 Microsoft