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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework