共用方式為


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

導覽屬性名稱。

傳回

代表非同步作業的工作。

例外狀況

適用於