次の方法で共有


VariableToken Class

Definition

A variable token - either a regular variable, such as $_, or a splatted variable like @PSBoundParameters.

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

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)
Name

The simple name of the variable, without any scope or drive qualification.

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)
VariablePath

The full details of the variable path.

Methods

ToString()

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

(Inherited from Token)

Applies to