共用方式為


ControlFlowGraphExtensions.GetAnonymousFunctionControlFlowGraphInScope Method

Definition

Gets or creates a control flow graph for the given anonymousFunction defined in the given controlFlowGraph or any of it's parent control flow graphs.

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph GetAnonymousFunctionControlFlowGraphInScope (this Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph controlFlowGraph, Microsoft.CodeAnalysis.FlowAnalysis.IFlowAnonymousFunctionOperation anonymousFunction, System.Threading.CancellationToken cancellationToken = default);
static member GetAnonymousFunctionControlFlowGraphInScope : Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph * Microsoft.CodeAnalysis.FlowAnalysis.IFlowAnonymousFunctionOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
<Extension()>
Public Function GetAnonymousFunctionControlFlowGraphInScope (controlFlowGraph As ControlFlowGraph, anonymousFunction As IFlowAnonymousFunctionOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

Parameters

controlFlowGraph
ControlFlowGraph
cancellationToken
CancellationToken

Returns

Applies to