共用方式為


DirectiveTriviaSyntax.GetPreviousDirective Method

Definition

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

Parameters

Returns

Applies to