Partilhar via


StringLiteralToken Class

Definition

A single quoted string, or a single quoted here string.

public ref class StringLiteralToken : System::Management::Automation::Language::StringToken
public class StringLiteralToken : System.Management.Automation.Language.StringToken
type StringLiteralToken = class
    inherit StringToken
Public Class StringLiteralToken
Inherits StringToken
Inheritance
StringLiteralToken

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.

(Inherited from StringToken)

Methods

ToString()

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

(Inherited from Token)

Applies to