Share via


EntityReference<TEntity>.LoadAsync Method

Definition

Asynchronously loads an object or objects from the related end with the specified merge option.

[System.Diagnostics.DebuggerStepThrough]
public override System.Threading.Tasks.Task LoadAsync (System.Data.Entity.Core.Objects.MergeOption mergeOption, System.Threading.CancellationToken cancellationToken);
override this.LoadAsync : System.Data.Entity.Core.Objects.MergeOption * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

mergeOption
MergeOption

The MergeOption to use when merging objects into an existing EntityCollection<TEntity>.

cancellationToken
CancellationToken

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

Returns

A task that represents the asynchronous operation.

Attributes

Applies to