共用方式為


CSharpSyntaxNode.GetLastToken(Boolean, Boolean, Boolean, Boolean) 方法

定義

取得這個節點根目錄的最後一個非零寬度標記。

public Microsoft.CodeAnalysis.SyntaxToken GetLastToken (bool includeZeroWidth = false, bool includeSkipped = false, bool includeDirectives = false, bool includeDocumentationComments = false);
override 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

參數

includeZeroWidth
Boolean

如果應該包含零寬度標記,則為 True,預設值為 false。

includeSkipped
Boolean

如果應該包含略過的權杖,則為 True,預設為 false。

includeDirectives
Boolean

如果應該包含指示詞,則為 True,預設為 false。

includeDocumentationComments
Boolean

如果應該包含檔批註,則為 True,預設為 false。

傳回

適用於