ILazyLoader.LoadAsync(Object, CancellationToken, String) 方法

定义

加载导航属性(如果尚未加载)。

public System.Threading.Tasks.Task LoadAsync (object entity, System.Threading.CancellationToken cancellationToken = default, string navigationName = default);
public System.Threading.Tasks.Task LoadAsync (object entity, System.Threading.CancellationToken cancellationToken = default, string navigationName = "");
abstract member LoadAsync : obj * System.Threading.CancellationToken * string -> System.Threading.Tasks.Task
Public Function LoadAsync (entity As Object, Optional cancellationToken As CancellationToken = Nothing, Optional navigationName As String = Nothing) As Task
Public Function LoadAsync (entity As Object, Optional cancellationToken As CancellationToken = Nothing, Optional navigationName As String = "") As Task

参数

entity
Object

导航属性所在的实体。

cancellationToken
CancellationToken

等待 CancellationToken 任务完成时要观察的 。

navigationName
String

导航属性名称。

返回

表示异步操作的任务。

例外

适用于