Token Class
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.
Represents many of the various PowerShell tokens, and is the base class for all PowerShell tokens.
public ref class Token
public class Token
type Token = class
Public Class Token
- Inheritance
-
Token
- Derived
Properties
Extent |
Return the extent in the script of the token. |
HasError |
Returns true if the token is in error somehow, such as missing a closing quote. |
Kind |
Return the kind of token. |
Text |
Return the text of the token as it appeared in the script. |
TokenFlags |
Return the flags for the token. |
Methods
ToString() |
Return the text of the token as it appeared in the script. |