共用方式為


ControlFlowGraph.Create 方法

定義

多載

Create(IAttributeOperation, CancellationToken)

ControlFlowGraph為指定的可執行程式碼區塊 attribute 建立 。

Create(IBlockOperation, CancellationToken)

ControlFlowGraph為指定的可執行程式碼區塊 body 建立 。

Create(IConstructorBodyOperation, CancellationToken)

ControlFlowGraph為指定的可執行程式碼區塊 constructorBody 建立 。

Create(IFieldInitializerOperation, CancellationToken)

ControlFlowGraph為指定的可執行程式碼區塊 initializer 建立 。

Create(IMethodBodyOperation, CancellationToken)

ControlFlowGraph為指定的可執行程式碼區塊 methodBody 建立 。

Create(IParameterInitializerOperation, CancellationToken)

ControlFlowGraph為指定的可執行程式碼區塊 initializer 建立 。

Create(IPropertyInitializerOperation, CancellationToken)

ControlFlowGraph為指定的可執行程式碼區塊 initializer 建立 。

Create(SyntaxNode, SemanticModel, CancellationToken)

ControlFlowGraph為指定的可執行程式碼區塊根 node 建立 。

Create(IAttributeOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph為指定的可執行程式碼區塊 attribute 建立 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IAttributeOperation attribute, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IAttributeOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (attribute As IAttributeOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

參數

attribute
IAttributeOperation

根屬性作業,其必須具有 Null 父系。

cancellationToken
CancellationToken

選擇性解除標記。

傳回

適用於

Create(IBlockOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph為指定的可執行程式碼區塊 body 建立 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IBlockOperation body, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IBlockOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (body As IBlockOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

參數

body
IBlockOperation

根作業區塊,其必須具有 Null 父系。

cancellationToken
CancellationToken

選擇性解除標記。

傳回

適用於

Create(IConstructorBodyOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph為指定的可執行程式碼區塊 constructorBody 建立 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IConstructorBodyOperation constructorBody, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IConstructorBodyOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (constructorBody As IConstructorBodyOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

參數

constructorBody
IConstructorBodyOperation

根建構函式主體作業,其必須具有 Null 父系。

cancellationToken
CancellationToken

選擇性解除標記。

傳回

適用於

Create(IFieldInitializerOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph為指定的可執行程式碼區塊 initializer 建立 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IFieldInitializerOperation initializer, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IFieldInitializerOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (initializer As IFieldInitializerOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

參數

initializer
IFieldInitializerOperation

根欄位初始化運算式作業,其必須具有 Null 父系。

cancellationToken
CancellationToken

選擇性解除標記。

傳回

適用於

Create(IMethodBodyOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph為指定的可執行程式碼區塊 methodBody 建立 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IMethodBodyOperation methodBody, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IMethodBodyOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (methodBody As IMethodBodyOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

參數

methodBody
IMethodBodyOperation

根方法主體作業,其必須具有 Null 父系。

cancellationToken
CancellationToken

選擇性解除標記。

傳回

適用於

Create(IParameterInitializerOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph為指定的可執行程式碼區塊 initializer 建立 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IParameterInitializerOperation initializer, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IParameterInitializerOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (initializer As IParameterInitializerOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

參數

initializer
IParameterInitializerOperation

根參數初始化運算式作業,其必須具有 Null 父系。

cancellationToken
CancellationToken

選擇性解除標記。

傳回

適用於

Create(IPropertyInitializerOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph為指定的可執行程式碼區塊 initializer 建立 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IPropertyInitializerOperation initializer, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IPropertyInitializerOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (initializer As IPropertyInitializerOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

參數

initializer
IPropertyInitializerOperation

根屬性初始化運算式作業,其必須具有 Null 父系。

cancellationToken
CancellationToken

選擇性解除標記。

傳回

適用於

Create(SyntaxNode, SemanticModel, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph為指定的可執行程式碼區塊根 node 建立 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph? Create (Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SemanticModel * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (node As SyntaxNode, semanticModel As SemanticModel, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

參數

node
SyntaxNode

可執行程式碼區塊的根語法節點。

semanticModel
SemanticModel

包含 node 的語法樹狀結構語意模型。

cancellationToken
CancellationToken

選擇性解除標記。

傳回

如果針對指定的 nodesemanticModelGetOperation(SyntaxNode, CancellationToken) 回 null,則傳回 null。 否則,傳 ControlFlowGraph 回可執行程式碼區塊的 。

適用於