Condividi tramite


SyntaxNode.GetFirstToken(Boolean, Boolean, Boolean, Boolean) Metodo

Definizione

Ottiene il primo token dell'albero radicato da questo nodo. Ignora i token di larghezza zero.

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

Parametri

includeZeroWidth
Boolean
includeSkipped
Boolean
includeDirectives
Boolean
includeDocumentationComments
Boolean

Restituisce

Primo token o default(SyntaxToken) se non esiste.

Si applica a