Freigeben über


SyntaxNode.GetLastToken(Boolean, Boolean, Boolean, Boolean) Methode

Definition

Ruft das letzte Token der Struktur ab, die von diesem Knoten verwurzelt ist. Überspringt Token mit Nullbreite.

public Microsoft.CodeAnalysis.SyntaxToken GetLastToken (bool includeZeroWidth = false, bool includeSkipped = false, bool includeDirectives = false, bool includeDocumentationComments = false);
member this.GetLastToken : bool * bool * bool * bool -> Microsoft.CodeAnalysis.SyntaxToken
Public Function GetLastToken (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 letzte Token oder default(SyntaxToken) wenn es nicht vorhanden ist.

Gilt für: