共用方式為


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

參數

傳回

適用於