SyntaxNode.GetFirstToken(Boolean, Boolean, Boolean, Boolean) Méthode

Définition

Obtient le premier jeton de l’arborescence enracinée par ce nœud. Ignore les jetons de largeur zéro par défaut.

public Microsoft.CodeAnalysis.SyntaxToken GetFirstToken(bool includeZeroWidth = false, bool includeSkipped = false, bool includeDirectives = false, bool includeDocumentationComments = false);
member this.GetFirstToken : bool * bool * bool * bool -> Microsoft.CodeAnalysis.SyntaxToken
Public Function GetFirstToken (Optional includeZeroWidth As Boolean = false, Optional includeSkipped As Boolean = false, Optional includeDirectives As Boolean = false, Optional includeDocumentationComments As Boolean = false) As SyntaxToken

Paramètres

includeZeroWidth
Boolean
includeSkipped
Boolean
includeDirectives
Boolean
includeDocumentationComments
Boolean

Retours

Premier jeton ou default(SyntaxToken) s’il n’existe pas.

S’applique à