共用方式為


VisualBasicSyntaxNode.GetDirectives 方法

定義

public System.Collections.Generic.IList<Microsoft.CodeAnalysis.VisualBasic.Syntax.DirectiveTriviaSyntax> GetDirectives (Func<Microsoft.CodeAnalysis.VisualBasic.Syntax.DirectiveTriviaSyntax,bool> filter = default);
member this.GetDirectives : Func<Microsoft.CodeAnalysis.VisualBasic.Syntax.DirectiveTriviaSyntax, bool> -> System.Collections.Generic.IList<Microsoft.CodeAnalysis.VisualBasic.Syntax.DirectiveTriviaSyntax>
Public Function GetDirectives (Optional filter As Func(Of DirectiveTriviaSyntax, Boolean) = Nothing) As IList(Of DirectiveTriviaSyntax)

參數

傳回

適用於