SyntaxNode.GetFirstToken(Boolean, Boolean, Boolean, Boolean) Methode

Definition

Ruft das erste Token der Struktur ab, die von diesem Knoten stammet. Überspringt standardmäßig Token mit Nullbreite.

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

Parameter

includeZeroWidth
Boolean
includeSkipped
Boolean
includeDirectives
Boolean
includeDocumentationComments
Boolean

Gibt zurück

Das erste Token oder default(SyntaxToken) wenn es nicht vorhanden ist.

Gilt für: