TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>.Required Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ce type/membre prend en charge l’infrastructure .NET Framework et n’est pas destiné à être utilisé directement à partir de votre code. Détermine si le jeton attendu est requis.
protected internal bool Required(TSymbolType expected, bool errorIfNotFound, string errorBase);
member this.Required : 'SymbolType * bool * string -> bool
Protected Friend Function Required (expected As TSymbolType, errorIfNotFound As Boolean, errorBase As String) As Boolean
Paramètres
- expected
- TSymbolType
Le jeton attendu.
- errorIfNotFound
- Boolean
true pour afficher une erreur si introuvable ; sinon, false.
- errorBase
- String
Base d'erreur.
Retours
true si le jeton attendu est requis ; sinon, false.