VisualBasicSyntaxNode.GetFirstDirective 方法

定义

public Microsoft.CodeAnalysis.VisualBasic.Syntax.DirectiveTriviaSyntax GetFirstDirective (Func<Microsoft.CodeAnalysis.VisualBasic.Syntax.DirectiveTriviaSyntax,bool> predicate = default);
member this.GetFirstDirective : Func<Microsoft.CodeAnalysis.VisualBasic.Syntax.DirectiveTriviaSyntax, bool> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.DirectiveTriviaSyntax
Public Function GetFirstDirective (Optional predicate As Func(Of DirectiveTriviaSyntax, Boolean) = Nothing) As DirectiveTriviaSyntax

参数

返回

适用于