Partager via


IEntityEntryGraphIterator.TraverseGraphAsync Méthode

Définition

Surcharges

TraverseGraphAsync<TState>(EntityEntryGraphNode<TState>, Func<EntityEntryGraphNode<TState>,CancellationToken,Task<Boolean>>, CancellationToken)

Traverse un graphique d’entités permettant d’effectuer une action à chaque nœud.

TraverseGraphAsync<TState>(EntityEntryGraphNode, TState, Func<EntityEntryGraphNode,TState,CancellationToken,Task<Boolean>>, CancellationToken)

Traverse un graphique d’entités permettant d’effectuer une action à chaque nœud.

TraverseGraphAsync<TState>(EntityEntryGraphNode<TState>, Func<EntityEntryGraphNode<TState>,CancellationToken,Task<Boolean>>, CancellationToken)

Traverse un graphique d’entités permettant d’effectuer une action à chaque nœud.

public System.Threading.Tasks.Task TraverseGraphAsync<TState> (Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode<TState> node, Func<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode<TState>,System.Threading.CancellationToken,System.Threading.Tasks.Task<bool>> handleNode, System.Threading.CancellationToken cancellationToken = default);
abstract member TraverseGraphAsync : Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode<'State> * Func<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode<'State>, System.Threading.CancellationToken, System.Threading.Tasks.Task<bool>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TraverseGraphAsync(Of TState) (node As EntityEntryGraphNode(Of TState), handleNode As Func(Of EntityEntryGraphNode(Of TState), CancellationToken, Task(Of Boolean)), Optional cancellationToken As CancellationToken = Nothing) As Task

Paramètres de type

TState

Type de l’objet d’état.

Paramètres

node
EntityEntryGraphNode<TState>

Nœud visité.

handleNode
Func<EntityEntryGraphNode<TState>,CancellationToken,Task<Boolean>>

Délégué à appeler pour gérer le nœud.

cancellationToken
CancellationToken

CancellationToken À observer en attendant la fin de la tâche.

Retours

Tâche qui représente l’opération asynchrone.

Exceptions

S’applique à

TraverseGraphAsync<TState>(EntityEntryGraphNode, TState, Func<EntityEntryGraphNode,TState,CancellationToken,Task<Boolean>>, CancellationToken)

Traverse un graphique d’entités permettant d’effectuer une action à chaque nœud.

public System.Threading.Tasks.Task TraverseGraphAsync<TState> (Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode node, TState state, Func<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode,TState,System.Threading.CancellationToken,System.Threading.Tasks.Task<bool>> handleNode, System.Threading.CancellationToken cancellationToken = default);
abstract member TraverseGraphAsync : Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode * 'State * Func<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode, 'State, System.Threading.CancellationToken, System.Threading.Tasks.Task<bool>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TraverseGraphAsync(Of TState) (node As EntityEntryGraphNode, state As TState, handleNode As Func(Of EntityEntryGraphNode, TState, CancellationToken, Task(Of Boolean)), Optional cancellationToken As CancellationToken = Nothing) As Task

Paramètres de type

TState

Type de l’objet d’état.

Paramètres

node
EntityEntryGraphNode

Nœud visité.

state
TState

Objet d’état arbitraire.

handleNode
Func<EntityEntryGraphNode,TState,CancellationToken,Task<Boolean>>

Délégué à appeler pour gérer le nœud.

cancellationToken
CancellationToken

CancellationToken À observer en attendant la fin de la tâche.

Retours

Tâche qui représente l’opération asynchrone.

S’applique à