TokenTraits.HasTrait(TokenKind, TokenFlags) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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