Skip to main content
TokenFlags Enumeration
Flags that specify additional information about a given token.

Namespace: System.Management.Automation.Language
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Dim instance As TokenFlags
<FlagsAttribute> _
Public Enumeration TokenFlags
public enum TokenFlags
public enum class TokenFlags
/** @attribute FlagsAttribute() */ 
public enum TokenFlags
public enum TokenFlags
Member nameDescription
AssignmentOperatorThe token is one of the assignment operators: '=', '+=', '-=', '*=', '/=', or '%='
AttributeNameThe token names an attribute.
BinaryOperatorThe token is a binary operator.
BinaryPrecedenceAddThe precedence of the binary operators '+' and '-'.
BinaryPrecedenceBitwiseThe precedence of the bitwise operators '-band', '-bor', and '-bxor'
BinaryPrecedenceComparisonThe precedence of comparison operators including: '-eq', '-ne', '-ge', '-gt', '-lt', '-le', '-like', '-notlike', '-match', '-notmatch', '-replace', '-containts', '-notcontains', '-in', '-notin', '-split', '-join', '-is', '-isnot', '-as', and all of the case sensitive variants of these operators, if they exists.
BinaryPrecedenceFormatThe precedence of the '-f' operator.
BinaryPrecedenceLogicalThe precedence of the logical operators '-and', '-or', and '-xor'.
BinaryPrecedenceMaskA bitmask to get the precedence of binary operators.
BinaryPrecedenceMultiplyThe precedence of the operators '*', '/', and '%'.
BinaryPrecedenceRangeThe precedence of the '..' operator.
CanConstantFoldThe token is a valid operator to use when doing constant folding.
CaseSensitiveOperatorThe token is a case sensitive operator such as '-ceq' or '-ccontains'.
CommandNameThe token names a command in a pipeline.
DisallowedInRestrictedModeThe operator is not allowed in restricted language mode or in the data language.
KeywordThe token is a keyword.
MemberNameThe token names a member of a class.
NoneThe token has no flags.
ParseModeInvariantThe token is scanned identically in expression mode or command mode.
PrefixOrPostfixOperatorThe token is either a prefix or postfix '++' or '--'.
ScriptBlockBlockNameThe token one of the keywords that is a part of a script block: 'begin', 'process', 'end', or 'dynamicparam'.
SpecialOperatorThe operators '&', '|', and the member access operators ':' and '::'.
TokenInErrorThe token has some error associated with it. For example, it may be a string missing it's terminator.
TypeNameThe token names a type.
UnaryOperatorThe token is a unary operator.


Target Platforms