Bagikan melalui


IEntityEntryGraphIterator.TraverseGraphAsync Metode

Definisi

Overload

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

Melintasi grafik entitas yang memungkinkan tindakan diambil di setiap simpul.

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

Melintasi grafik entitas yang memungkinkan tindakan diambil di setiap simpul.

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

Melintasi grafik entitas yang memungkinkan tindakan diambil di setiap simpul.

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

Jenis parameter

TState

Jenis objek status.

Parameter

node
EntityEntryGraphNode<TState>

Simpul yang sedang dikunjungi.

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

Delegasi untuk memanggil untuk menangani simpul.

cancellationToken
CancellationToken

A CancellationToken untuk mengamati sambil menunggu tugas selesai.

Mengembalikan

Tugas yang mewakili operasi asinkron.

Pengecualian

Berlaku untuk

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

Melintasi grafik entitas yang memungkinkan tindakan diambil di setiap simpul.

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

Jenis parameter

TState

Jenis objek status.

Parameter

node
EntityEntryGraphNode

Simpul yang sedang dikunjungi.

state
TState

Objek status arbitrer.

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

Delegasi untuk memanggil untuk menangani simpul.

cancellationToken
CancellationToken

A CancellationToken untuk mengamati sambil menunggu tugas selesai.

Mengembalikan

Tugas yang mewakili operasi asinkron.

Berlaku untuk