Share via


ILazyLoader.LoadAsync(Object, CancellationToken, String) Method

Definition

Loads a navigation property if it has not already been loaded.

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

Parameters

entity
Object

The entity on which the navigation property is located.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for the task to complete.

navigationName
String

The navigation property name.

Returns

A task that represents the asynchronous operation.

Exceptions

Applies to