Condividi tramite


ParameterToken Class

Definition

A parameter to a cmdlet (always starts with a dash, like -Path).

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

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

The parameter name without the leading dash. It is never null or an empty string.

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

When passing an parameter with argument in the form: dir -Path:* The colon is part of the ParameterToken. This property returns true when this form is used, false otherwise.

Methods

ToString()

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

(Inherited from Token)

Applies to