Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSToken Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents a token generated from a Windows PowerShell script. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.PSToken

Public NotInheritable Class PSToken

NameDescription
System_CAPS_pubpropertyContent

Gets the text for the token. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyEndColumn

Gets the position in the line where the token ends. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyEndLine

Gets the line number of the script where the token ends. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyLength

Gets the length of the token. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyStart

Gets the offset of where the token begins from the beginning of the script. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyStartColumn

Gets the position in the line where the token begins. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyStartLine

Gets the line number of the script where the token begins. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyType

Gets the type of token, such as a parameter token for cmdlet parameters. This property is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetPSTokenType(Token)

Maps a Windows PowerShell version 3.0 token to a Windows PowerShell version 2.0 token type. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Tokens are generated by parsing Windows PowerShell scripts using the Tokenize method.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: