PSToken.GetPSTokenType(Token) Method

Definition

Map a V3 token to a V2 PSTokenType.

public:
 static System::Management::Automation::PSTokenType GetPSTokenType(System::Management::Automation::Language::Token ^ token);
public static System.Management.Automation.PSTokenType GetPSTokenType (System.Management.Automation.Language.Token token);
static member GetPSTokenType : System.Management.Automation.Language.Token -> System.Management.Automation.PSTokenType
Public Shared Function GetPSTokenType (token As Token) As PSTokenType

Parameters

token
Token

The V3 token.

Returns

The V2 PSTokenType.

Applies to