Freigeben über


DbRawSqlQuery<TElement>.MinAsync-Methode (CancellationToken)

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Gibt asynchron den Minimalwert der Abfrage zurück.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Function MinAsync ( _
    cancellationToken As CancellationToken _
) As Task(Of TElement)
'Usage
Dim instance As DbRawSqlQuery 
Dim cancellationToken As CancellationToken 
Dim returnValue As Task(Of TElement)

returnValue = instance.MinAsync(cancellationToken)
public Task<TElement> MinAsync(
    CancellationToken cancellationToken
)
public:
Task<TElement>^ MinAsync(
    CancellationToken cancellationToken
)
member MinAsync : 
        cancellationToken:CancellationToken -> Task<'TElement> 
public function MinAsync(
    cancellationToken : CancellationToken
) : Task<TElement>

Parameter

Rückgabewert

Typ: System.Threading.Tasks.Task<TElement>
Eine Aufgabe, die den asynchronen Vorgang darstellt.Das Aufgabeergebnis enthält den Minimalwert im Abfrageergebnis.

Hinweise

Mehrere aktive Vorgänge für dieselbe Kontextinstanz werden nicht unterstützt. Verwenden Sie await, um sicherzustellen, dass sämtliche asynchronen Vorgänge abgeschlossen sind, bevor eine andere Methode in diesem Kontext aufgerufen wird.

Siehe auch

Verweis

DbRawSqlQuery<TElement> Klasse

MinAsync-Überladung

System.Data.Entity.Infrastructure-Namespace