Compartilhar via


StringToken Class

Definition

The base class for any string token, including single quoted string, double quoted strings, and here strings.

public ref class StringToken abstract : System::Management::Automation::Language::Token
public abstract class StringToken : System.Management.Automation.Language.Token
type StringToken = class
    inherit Token
Public MustInherit Class StringToken
Inherits Token
Inheritance
StringToken
Derived

Properties

Extent

Return the extent in the script of the token.

(Inherited from Token)
HasError

Returns true if the token is in error somehow, such as missing a closing quote.

(Inherited from Token)
Kind

Return the kind of token.

(Inherited from Token)
Text

Return the text of the token as it appeared in the script.

(Inherited from Token)
TokenFlags

Return the flags for the token.

(Inherited from Token)
Value

The string value without quotes or leading newlines in the case of a here string.

Methods

ToString()

Return the text of the token as it appeared in the script.

(Inherited from Token)

Applies to