Partager via


Token Class

Definition

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.

Applies to