PSToken Members

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

The following tables list the members exposed by the PSToken type.

  Name Description
public property Content Gets the text for the token. This property is introduced in Windows PowerShell 2.0.
public property EndColumn Gets the position in the line where the token ends. This property is introduced in Windows PowerShell 2.0.
public property EndLine Gets the line number of the script where the token ends. This property is introduced in Windows PowerShell 2.0.
public property Length Gets the length of the token. This property is introduced in Windows PowerShell 2.0.
public property Start Gets the offset of where the token begins from the beginning of the script. This property is introduced in Windows PowerShell 2.0.
public property StartColumn Gets the position in the line where the token begins. This property is introduced in Windows PowerShell 2.0.
public property StartLine Gets the line number of the script where the token begins. This property is introduced in Windows PowerShell 2.0.
public property Type Gets the type of token, such as a parameter token for cmdlet parameters. This property is introduced in Windows PowerShell 2.0.
Top

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodstaticGetPSTokenTypeMaps a Windows PowerShell version 3.0 token to a Windows PowerShell version 2.0 token type. Introduced in Windows PowerShell 3.0.
public methodGetType  (Inherited from Object)
public methodToString  (Inherited from Object)
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top


Show: