Sprache

ShapedQueryCompilingExpressionVisitor.SingleAsync<TSource> Methode

Definition

Dies ist eine interne API, die die Entity Framework Core-Infrastruktur unterstützt und nicht den gleichen Kompatibilitätsstandards wie öffentliche APIs unterliegt. Sie kann ohne Vorherige Ankündigung geändert oder entfernt werden. Sie sollten sie nur direkt in Ihrem Code mit äußerster Vorsicht verwenden und wissen, dass dies zu Anwendungsfehlern bei der Aktualisierung auf eine neue Entity Framework Core-Version führen kann.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public static System.Threading.Tasks.Task<TSource> SingleAsync<TSource>(System.Collections.Generic.IAsyncEnumerable<TSource> asyncEnumerable, System.Threading.CancellationToken cancellationToken = default);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
static member SingleAsync : System.Collections.Generic.IAsyncEnumerable<'Source> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Source>
Public Shared Function SingleAsync(Of TSource) (asyncEnumerable As IAsyncEnumerable(Of TSource), Optional cancellationToken As CancellationToken = Nothing) As Task(Of TSource)

Typparameter

TSource

Parameter

asyncEnumerable
IAsyncEnumerable<TSource>
cancellationToken
CancellationToken

Gibt zurück

Task<TSource>
Attribute

Gilt für: