ILazyLoader.LoadAsync(Object, CancellationToken, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
If the CancellationToken is canceled.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework