Partager via


TokenTraits.HasTrait(TokenKind, TokenFlags) Method

Definition

Return true if the TokenKind has the given trait.

public:
[System::Runtime::CompilerServices::Extension]
 static bool HasTrait(System::Management::Automation::Language::TokenKind kind, System::Management::Automation::Language::TokenFlags flag);
public static bool HasTrait (this System.Management.Automation.Language.TokenKind kind, System.Management.Automation.Language.TokenFlags flag);
static member HasTrait : System.Management.Automation.Language.TokenKind * System.Management.Automation.Language.TokenFlags -> bool
<Extension()>
Public Function HasTrait (kind As TokenKind, flag As TokenFlags) As Boolean

Parameters

kind
TokenKind
flag
TokenFlags

Returns

Applies to